Module Name: src Committed By: christos Date: Thu Sep 17 20:13:20 UTC 2020
Added Files: src/external/gpl3/gdb/dist/gdb/doc: gcore.1 gdb-add-index.1 gdb.1 gdbinit.5 gdbserver.1 Log Message: commit generated man pages To generate a diff of this commit: cvs rdiff -u -r0 -r1.3 src/external/gpl3/gdb/dist/gdb/doc/gcore.1 \ src/external/gpl3/gdb/dist/gdb/doc/gdb-add-index.1 \ src/external/gpl3/gdb/dist/gdb/doc/gdb.1 \ src/external/gpl3/gdb/dist/gdb/doc/gdbinit.5 \ src/external/gpl3/gdb/dist/gdb/doc/gdbserver.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Added files: Index: src/external/gpl3/gdb/dist/gdb/doc/gcore.1 diff -u /dev/null src/external/gpl3/gdb/dist/gdb/doc/gcore.1:1.3 --- /dev/null Thu Sep 17 16:13:20 2020 +++ src/external/gpl3/gdb/dist/gdb/doc/gcore.1 Thu Sep 17 16:13:20 2020 @@ -0,0 +1,196 @@ +.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "GCORE 1" +.TH GCORE 1 "2020-09-17" "gdb-11.0.50.20200914-git" "GNU Development Tools" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +gcore \- Generate a core file of a running program +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +gcore [\-a] [\-o \fIprefix\fR] \fIpid1\fR [\fIpid2\fR...\fIpidN\fR] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Generate core dumps of one or more running programs with process IDs +\&\fIpid1\fR, \fIpid2\fR, etc. A core file produced by \fBgcore\fR +is equivalent to one produced by the kernel when the process crashes +(and when \f(CW\*(C`ulimit \-c\*(C'\fR was used to set up an appropriate core dump +limit). However, unlike after a crash, after \fBgcore\fR finishes +its job the program remains running without any change. +.SH "OPTIONS" +.IX Header "OPTIONS" +.IP "\fB\-a\fR" 4 +.IX Item "-a" +Dump all memory mappings. The actual effect of this option depends on +the Operating System. On GNU/Linux, it will disable +\&\f(CW\*(C`use\-coredump\-filter\*(C'\fR and +enable \f(CW\*(C`dump\-excluded\-mappings\*(C'\fR. +.IP "\fB\-o\fR \fIprefix\fR" 4 +.IX Item "-o prefix" +The optional argument \fIprefix\fR specifies the prefix to be used +when composing the file names of the core dumps. The file name is +composed as \fI\fIprefix\fI.\fIpid\fI\fR, where \fIpid\fR is the +process \s-1ID\s0 of the running program being analyzed by \fBgcore\fR. +If not specified, \fIprefix\fR defaults to \fIgcore\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The full documentation for \s-1GDB\s0 is maintained as a Texinfo manual. +If the \f(CW\*(C`info\*(C'\fR and \f(CW\*(C`gdb\*(C'\fR programs and \s-1GDB\s0's Texinfo +documentation are properly installed at your site, the command +.PP +.Vb 1 +\& info gdb +.Ve +.PP +should give you access to the complete manual. +.PP +\&\fIUsing \s-1GDB: A\s0 Guide to the \s-1GNU\s0 Source-Level Debugger\fR, +Richard M. Stallman and Roland H. Pesch, July 1991. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1988\-2020 Free Software Foundation, Inc. +.PP +Permission is granted to copy, distribute and/or modify this document +under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with the +Invariant Sections being \*(L"Free Software\*(R" and \*(L"Free Software Needs +Free Documentation\*(R", with the Front-Cover Texts being \*(L"A \s-1GNU\s0 Manual,\*(R" +and with the Back-Cover Texts as in (a) below. +.PP +(a) The \s-1FSF\s0's Back-Cover Text is: \*(L"You are free to copy and modify +this \s-1GNU\s0 Manual. Buying copies from \s-1GNU\s0 Press supports the \s-1FSF\s0 in +developing \s-1GNU\s0 and promoting software freedom.\*(R" Index: src/external/gpl3/gdb/dist/gdb/doc/gdb-add-index.1 diff -u /dev/null src/external/gpl3/gdb/dist/gdb/doc/gdb-add-index.1:1.3 --- /dev/null Thu Sep 17 16:13:20 2020 +++ src/external/gpl3/gdb/dist/gdb/doc/gdb-add-index.1 Thu Sep 17 16:13:20 2020 @@ -0,0 +1,197 @@ +.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "GDB-ADD-INDEX 1" +.TH GDB-ADD-INDEX 1 "2020-09-17" "gdb-11.0.50.20200914-git" "GNU Development Tools" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +gdb\-add\-index \- Add index files to speed up GDB +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +gdb-add-index \fIfilename\fR +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +When \s-1GDB\s0 finds a symbol file, it scans the symbols in the +file in order to construct an internal symbol table. This lets most +\&\s-1GDB\s0 operations work quickly\*(--at the cost of a delay early on. +For large programs, this delay can be quite lengthy, so \s-1GDB\s0 +provides a way to build an index, which speeds up startup. +.PP +To determine whether a file contains such an index, use the command +\&\f(CW\*(C`readelf \-S filename\*(C'\fR: the index is stored in a section named +\&\f(CW\*(C`.gdb_index\*(C'\fR. The index file can only be produced on systems +which use \s-1ELF\s0 binaries and \s-1DWARF\s0 debug information (i.e., sections +named \f(CW\*(C`.debug_*\*(C'\fR). +.PP +\&\fBgdb-add-index\fR uses \s-1GDB\s0 and \fBobjdump\fR found +in the \fB\s-1PATH\s0\fR environment variable. If you want to use different +versions of these programs, you can specify them through the +\&\fB\s-1GDB\s0\fR and \fB\s-1OBJDUMP\s0\fR environment variables. +.PP +See more in +the \s-1GDB\s0 manual in node \f(CW\*(C`Index Files\*(C'\fR +\&\*(-- shell command \f(CW\*(C`info \-f gdb \-n "Index Files"\*(C'\fR. +.SH "OPTIONS" +.IX Header "OPTIONS" +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The full documentation for \s-1GDB\s0 is maintained as a Texinfo manual. +If the \f(CW\*(C`info\*(C'\fR and \f(CW\*(C`gdb\*(C'\fR programs and \s-1GDB\s0's Texinfo +documentation are properly installed at your site, the command +.PP +.Vb 1 +\& info gdb +.Ve +.PP +should give you access to the complete manual. +.PP +\&\fIUsing \s-1GDB: A\s0 Guide to the \s-1GNU\s0 Source-Level Debugger\fR, +Richard M. Stallman and Roland H. Pesch, July 1991. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1988\-2020 Free Software Foundation, Inc. +.PP +Permission is granted to copy, distribute and/or modify this document +under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with the +Invariant Sections being \*(L"Free Software\*(R" and \*(L"Free Software Needs +Free Documentation\*(R", with the Front-Cover Texts being \*(L"A \s-1GNU\s0 Manual,\*(R" +and with the Back-Cover Texts as in (a) below. +.PP +(a) The \s-1FSF\s0's Back-Cover Text is: \*(L"You are free to copy and modify +this \s-1GNU\s0 Manual. Buying copies from \s-1GNU\s0 Press supports the \s-1FSF\s0 in +developing \s-1GNU\s0 and promoting software freedom.\*(R" Index: src/external/gpl3/gdb/dist/gdb/doc/gdb.1 diff -u /dev/null src/external/gpl3/gdb/dist/gdb/doc/gdb.1:1.3 --- /dev/null Thu Sep 17 16:13:20 2020 +++ src/external/gpl3/gdb/dist/gdb/doc/gdb.1 Thu Sep 17 16:13:20 2020 @@ -0,0 +1,404 @@ +.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "GDB 1" +.TH GDB 1 "2020-09-17" "gdb-11.0.50.20200914-git" "GNU Development Tools" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +gdb \- The GNU Debugger +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +gdb [\fB\-help\fR] [\fB\-nh\fR] [\fB\-nx\fR] [\fB\-q\fR] +[\fB\-batch\fR] [\fB\-cd=\fR\fIdir\fR] [\fB\-f\fR] +[\fB\-b\fR\ \fIbps\fR] + [\fB\-tty=\fR\fIdev\fR] [\fB\-s\fR \fIsymfile\fR] +[\fB\-e\fR\ \fIprog\fR] [\fB\-se\fR\ \fIprog\fR] +[\fB\-c\fR\ \fIcore\fR] [\fB\-p\fR\ \fIprocID\fR] + [\fB\-x\fR\ \fIcmds\fR] [\fB\-d\fR\ \fIdir\fR] +[\fIprog\fR|\fIprog\fR \fIprocID\fR|\fIprog\fR \fIcore\fR] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The purpose of a debugger such as \s-1GDB\s0 is to allow you to see what is +going on \*(L"inside\*(R" another program while it executes \*(-- or what another +program was doing at the moment it crashed. +.PP +\&\s-1GDB\s0 can do four main kinds of things (plus other things in support of +these) to help you catch bugs in the act: +.IP "\(bu" 4 +Start your program, specifying anything that might affect its behavior. +.IP "\(bu" 4 +Make your program stop on specified conditions. +.IP "\(bu" 4 +Examine what has happened, when your program has stopped. +.IP "\(bu" 4 +Change things in your program, so you can experiment with correcting the +effects of one bug and go on to learn about another. +.PP +You can use \s-1GDB\s0 to debug programs written in C, \*(C+, Fortran and +Modula\-2. +.PP +\&\s-1GDB\s0 is invoked with the shell command \f(CW\*(C`gdb\*(C'\fR. Once started, it reads +commands from the terminal until you tell it to exit with the \s-1GDB\s0 +command \f(CW\*(C`quit\*(C'\fR. You can get online help from \s-1GDB\s0 itself +by using the command \f(CW\*(C`help\*(C'\fR. +.PP +You can run \f(CW\*(C`gdb\*(C'\fR with no arguments or options; but the most +usual way to start \s-1GDB\s0 is with one argument or two, specifying an +executable program as the argument: +.PP +.Vb 1 +\& gdb program +.Ve +.PP +You can also start with both an executable program and a core file specified: +.PP +.Vb 1 +\& gdb program core +.Ve +.PP +You can, instead, specify a process \s-1ID\s0 as a second argument or use option +\&\f(CW\*(C`\-p\*(C'\fR, if you want to debug a running process: +.PP +.Vb 2 +\& gdb program 1234 +\& gdb \-p 1234 +.Ve +.PP +would attach \s-1GDB\s0 to process \f(CW1234\fR. With option \fB\-p\fR you +can omit the \fIprogram\fR filename. +.PP +Here are some of the most frequently needed \s-1GDB\s0 commands: +.IP "\fBbreak [\fR\fIfile\fR\fB:]\fR\fIfunction\fR" 4 +.IX Item "break [file:]function" +Set a breakpoint at \fIfunction\fR (in \fIfile\fR). +.IP "\fBrun [\fR\fIarglist\fR\fB]\fR" 4 +.IX Item "run [arglist]" +Start your program (with \fIarglist\fR, if specified). +.IP "\fBbt\fR" 4 +.IX Item "bt" +Backtrace: display the program stack. +.IP "\fBprint\fR \fIexpr\fR" 4 +.IX Item "print expr" +Display the value of an expression. +.IP "\fBc\fR" 4 +.IX Item "c" +Continue running your program (after stopping, e.g. at a breakpoint). +.IP "\fBnext\fR" 4 +.IX Item "next" +Execute next program line (after stopping); step \fIover\fR any +function calls in the line. +.IP "\fBedit [\fR\fIfile\fR\fB:]\fR\fIfunction\fR" 4 +.IX Item "edit [file:]function" +look at the program line where it is presently stopped. +.IP "\fBlist [\fR\fIfile\fR\fB:]\fR\fIfunction\fR" 4 +.IX Item "list [file:]function" +type the text of the program in the vicinity of where it is presently stopped. +.IP "\fBstep\fR" 4 +.IX Item "step" +Execute next program line (after stopping); step \fIinto\fR any +function calls in the line. +.IP "\fBhelp [\fR\fIname\fR\fB]\fR" 4 +.IX Item "help [name]" +Show information about \s-1GDB\s0 command \fIname\fR, or general information +about using \s-1GDB.\s0 +.IP "\fBquit\fR" 4 +.IX Item "quit" +Exit from \s-1GDB.\s0 +.PP +For full details on \s-1GDB,\s0 +see \fIUsing \s-1GDB: A\s0 Guide to the \s-1GNU\s0 Source-Level Debugger\fR, +by Richard M. Stallman and Roland H. Pesch. The same text is available online +as the \f(CW\*(C`gdb\*(C'\fR entry in the \f(CW\*(C`info\*(C'\fR program. +.SH "OPTIONS" +.IX Header "OPTIONS" +Any arguments other than options specify an executable +file and core file (or process \s-1ID\s0); that is, the first argument +encountered with no +associated option flag is equivalent to a \fB\-se\fR option, and the second, +if any, is equivalent to a \fB\-c\fR option if it's the name of a file. +Many options have +both long and short forms; both are shown here. The long forms are also +recognized if you truncate them, so long as enough of the option is +present to be unambiguous. (If you prefer, you can flag option +arguments with \fB+\fR rather than \fB\-\fR, though we illustrate the +more usual convention.) +.PP +All the options and command line arguments you give are processed +in sequential order. The order makes a difference when the \fB\-x\fR +option is used. +.IP "\fB\-help\fR" 4 +.IX Item "-help" +.PD 0 +.IP "\fB\-h\fR" 4 +.IX Item "-h" +.PD +List all options, with brief explanations. +.IP "\fB\-symbols=\fR\fIfile\fR" 4 +.IX Item "-symbols=file" +.PD 0 +.IP "\fB\-s\fR \fIfile\fR" 4 +.IX Item "-s file" +.PD +Read symbol table from file \fIfile\fR. +.IP "\fB\-write\fR" 4 +.IX Item "-write" +Enable writing into executable and core files. +.IP "\fB\-exec=\fR\fIfile\fR" 4 +.IX Item "-exec=file" +.PD 0 +.IP "\fB\-e\fR \fIfile\fR" 4 +.IX Item "-e file" +.PD +Use file \fIfile\fR as the executable file to execute when +appropriate, and for examining pure data in conjunction with a core +dump. +.IP "\fB\-se=\fR\fIfile\fR" 4 +.IX Item "-se=file" +Read symbol table from file \fIfile\fR and use it as the executable +file. +.IP "\fB\-core=\fR\fIfile\fR" 4 +.IX Item "-core=file" +.PD 0 +.IP "\fB\-c\fR \fIfile\fR" 4 +.IX Item "-c file" +.PD +Use file \fIfile\fR as a core dump to examine. +.IP "\fB\-command=\fR\fIfile\fR" 4 +.IX Item "-command=file" +.PD 0 +.IP "\fB\-x\fR \fIfile\fR" 4 +.IX Item "-x file" +.PD +Execute \s-1GDB\s0 commands from file \fIfile\fR. +.IP "\fB\-ex\fR \fIcommand\fR" 4 +.IX Item "-ex command" +Execute given \s-1GDB\s0 \fIcommand\fR. +.IP "\fB\-directory=\fR\fIdirectory\fR" 4 +.IX Item "-directory=directory" +.PD 0 +.IP "\fB\-d\fR \fIdirectory\fR" 4 +.IX Item "-d directory" +.PD +Add \fIdirectory\fR to the path to search for source files. +.IP "\fB\-nh\fR" 4 +.IX Item "-nh" +Do not execute commands from \fI~/.gdbinit\fR. +.IP "\fB\-nx\fR" 4 +.IX Item "-nx" +.PD 0 +.IP "\fB\-n\fR" 4 +.IX Item "-n" +.PD +Do not execute commands from any \fI.gdbinit\fR initialization files. +.IP "\fB\-quiet\fR" 4 +.IX Item "-quiet" +.PD 0 +.IP "\fB\-q\fR" 4 +.IX Item "-q" +.PD +\&\*(L"Quiet\*(R". Do not print the introductory and copyright messages. These +messages are also suppressed in batch mode. +.IP "\fB\-batch\fR" 4 +.IX Item "-batch" +Run in batch mode. Exit with status \f(CW0\fR after processing all the command +files specified with \fB\-x\fR (and \fI.gdbinit\fR, if not inhibited). +Exit with nonzero status if an error occurs in executing the \s-1GDB\s0 +commands in the command files. +.Sp +Batch mode may be useful for running \s-1GDB\s0 as a filter, for example to +download and run a program on another computer; in order to make this +more useful, the message +.Sp +.Vb 1 +\& Program exited normally. +.Ve +.Sp +(which is ordinarily issued whenever a program running under \s-1GDB\s0 control +terminates) is not issued when running in batch mode. +.IP "\fB\-cd=\fR\fIdirectory\fR" 4 +.IX Item "-cd=directory" +Run \s-1GDB\s0 using \fIdirectory\fR as its working directory, +instead of the current directory. +.IP "\fB\-fullname\fR" 4 +.IX Item "-fullname" +.PD 0 +.IP "\fB\-f\fR" 4 +.IX Item "-f" +.PD +Emacs sets this option when it runs \s-1GDB\s0 as a subprocess. It tells +\&\s-1GDB\s0 to output the full file name and line number in a standard, +recognizable fashion each time a stack frame is displayed (which +includes each time the program stops). This recognizable format looks +like two \fB\e032\fR characters, followed by the file name, line number +and character position separated by colons, and a newline. The +Emacs-to-GDB interface program uses the two \fB\e032\fR +characters as a signal to display the source code for the frame. +.IP "\fB\-b\fR \fIbps\fR" 4 +.IX Item "-b bps" +Set the line speed (baud rate or bits per second) of any serial +interface used by \s-1GDB\s0 for remote debugging. +.IP "\fB\-tty=\fR\fIdevice\fR" 4 +.IX Item "-tty=device" +Run using \fIdevice\fR for your program's standard input and output. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The full documentation for \s-1GDB\s0 is maintained as a Texinfo manual. +If the \f(CW\*(C`info\*(C'\fR and \f(CW\*(C`gdb\*(C'\fR programs and \s-1GDB\s0's Texinfo +documentation are properly installed at your site, the command +.PP +.Vb 1 +\& info gdb +.Ve +.PP +should give you access to the complete manual. +.PP +\&\fIUsing \s-1GDB: A\s0 Guide to the \s-1GNU\s0 Source-Level Debugger\fR, +Richard M. Stallman and Roland H. Pesch, July 1991. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1988\-2020 Free Software Foundation, Inc. +.PP +Permission is granted to copy, distribute and/or modify this document +under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with the +Invariant Sections being \*(L"Free Software\*(R" and \*(L"Free Software Needs +Free Documentation\*(R", with the Front-Cover Texts being \*(L"A \s-1GNU\s0 Manual,\*(R" +and with the Back-Cover Texts as in (a) below. +.PP +(a) The \s-1FSF\s0's Back-Cover Text is: \*(L"You are free to copy and modify +this \s-1GNU\s0 Manual. Buying copies from \s-1GNU\s0 Press supports the \s-1FSF\s0 in +developing \s-1GNU\s0 and promoting software freedom.\*(R" Index: src/external/gpl3/gdb/dist/gdb/doc/gdbinit.5 diff -u /dev/null src/external/gpl3/gdb/dist/gdb/doc/gdbinit.5:1.3 --- /dev/null Thu Sep 17 16:13:20 2020 +++ src/external/gpl3/gdb/dist/gdb/doc/gdbinit.5 Thu Sep 17 16:13:20 2020 @@ -0,0 +1,218 @@ +.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "GDBINIT 5" +.TH GDBINIT 5 "2020-09-17" "gdb-11.0.50.20200914-git" "GNU Development Tools" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +gdbinit \- GDB initialization scripts +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +~/.gdbinit +.PP +\&./.gdbinit +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +These files contain \s-1GDB\s0 commands to automatically execute during +\&\s-1GDB\s0 startup. The lines of contents are canned sequences of commands, +described in +the \s-1GDB\s0 manual in node \f(CW\*(C`Sequences\*(C'\fR +\&\*(-- shell command \f(CW\*(C`info \-f gdb \-n Sequences\*(C'\fR. +.PP +Please read more in +the \s-1GDB\s0 manual in node \f(CW\*(C`Startup\*(C'\fR +\&\*(-- shell command \f(CW\*(C`info \-f gdb \-n Startup\*(C'\fR. +.ie n .IP "\fB(not enabled with \f(CB""\-\-with\-system\-gdbinit""\fB during compilation)\fR" 4 +.el .IP "\fB(not enabled with \f(CB\-\-with\-system\-gdbinit\fB during compilation)\fR" 4 +.IX Item "(not enabled with --with-system-gdbinit during compilation)" +System-wide initialization file. It is executed unless user specified +\&\s-1GDB\s0 option \f(CW\*(C`\-nx\*(C'\fR or \f(CW\*(C`\-n\*(C'\fR. +See more in +the \s-1GDB\s0 manual in node \f(CW\*(C`System\-wide configuration\*(C'\fR +\&\*(-- shell command \f(CW\*(C`info \-f gdb \-n \*(AqSystem\-wide configuration\*(Aq\*(C'\fR. +.ie n .IP "\fB(not enabled with \f(CB""\-\-with\-system\-gdbinit\-dir""\fB during compilation)\fR" 4 +.el .IP "\fB(not enabled with \f(CB\-\-with\-system\-gdbinit\-dir\fB during compilation)\fR" 4 +.IX Item "(not enabled with --with-system-gdbinit-dir during compilation)" +System-wide initialization directory. All files in this directory are +executed on startup unless user specified \s-1GDB\s0 option \f(CW\*(C`\-nx\*(C'\fR or +\&\f(CW\*(C`\-n\*(C'\fR, as long as they have a recognized file extension. +See more in +the \s-1GDB\s0 manual in node \f(CW\*(C`System\-wide configuration\*(C'\fR +\&\*(-- shell command \f(CW\*(C`info \-f gdb \-n \*(AqSystem\-wide configuration\*(Aq\*(C'\fR. +.IP "\fB~/.gdbinit\fR" 4 +.IX Item "~/.gdbinit" +User initialization file. It is executed unless user specified +\&\s-1GDB\s0 options \f(CW\*(C`\-nx\*(C'\fR, \f(CW\*(C`\-n\*(C'\fR or \f(CW\*(C`\-nh\*(C'\fR. +.IP "\fB./.gdbinit\fR" 4 +.IX Item "./.gdbinit" +Initialization file for current directory. It may need to be enabled with +\&\s-1GDB\s0 security command \f(CW\*(C`set auto\-load local\-gdbinit\*(C'\fR. +See more in +the \s-1GDB\s0 manual in node \f(CW\*(C`Init File in the Current Directory\*(C'\fR +\&\*(-- shell command \f(CW\*(C`info \-f gdb \-n \*(AqInit File in the Current Directory\*(Aq\*(C'\fR. +.SH "OPTIONS" +.IX Header "OPTIONS" +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fBgdb\fR\|(1), \f(CW\*(C`info \-f gdb \-n Startup\*(C'\fR +.PP +The full documentation for \s-1GDB\s0 is maintained as a Texinfo manual. +If the \f(CW\*(C`info\*(C'\fR and \f(CW\*(C`gdb\*(C'\fR programs and \s-1GDB\s0's Texinfo +documentation are properly installed at your site, the command +.PP +.Vb 1 +\& info gdb +.Ve +.PP +should give you access to the complete manual. +.PP +\&\fIUsing \s-1GDB: A\s0 Guide to the \s-1GNU\s0 Source-Level Debugger\fR, +Richard M. Stallman and Roland H. Pesch, July 1991. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1988\-2020 Free Software Foundation, Inc. +.PP +Permission is granted to copy, distribute and/or modify this document +under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with the +Invariant Sections being \*(L"Free Software\*(R" and \*(L"Free Software Needs +Free Documentation\*(R", with the Front-Cover Texts being \*(L"A \s-1GNU\s0 Manual,\*(R" +and with the Back-Cover Texts as in (a) below. +.PP +(a) The \s-1FSF\s0's Back-Cover Text is: \*(L"You are free to copy and modify +this \s-1GNU\s0 Manual. Buying copies from \s-1GNU\s0 Press supports the \s-1FSF\s0 in +developing \s-1GNU\s0 and promoting software freedom.\*(R" Index: src/external/gpl3/gdb/dist/gdb/doc/gdbserver.1 diff -u /dev/null src/external/gpl3/gdb/dist/gdb/doc/gdbserver.1:1.3 --- /dev/null Thu Sep 17 16:13:20 2020 +++ src/external/gpl3/gdb/dist/gdb/doc/gdbserver.1 Thu Sep 17 16:13:20 2020 @@ -0,0 +1,382 @@ +.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "GDBSERVER 1" +.TH GDBSERVER 1 "2020-09-17" "gdb-11.0.50.20200914-git" "GNU Development Tools" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +gdbserver \- Remote Server for the GNU Debugger +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +gdbserver \fIcomm\fR \fIprog\fR [\fIargs\fR...] +.PP +gdbserver \-\-attach \fIcomm\fR \fIpid\fR +.PP +gdbserver \-\-multi \fIcomm\fR +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBgdbserver\fR is a program that allows you to run \s-1GDB\s0 on a different machine +than the one which is running the program being debugged. +.PP +Usage (server (target) side): +.PP +First, you need to have a copy of the program you want to debug put onto +the target system. The program can be stripped to save space if needed, as +\&\fBgdbserver\fR doesn't care about symbols. All symbol handling is taken care of by +the \s-1GDB\s0 running on the host system. +.PP +To use the server, you log on to the target system, and run the \fBgdbserver\fR +program. You must tell it (a) how to communicate with \s-1GDB,\s0 (b) the name of +your program, and (c) its arguments. The general syntax is: +.PP +.Vb 1 +\& target> gdbserver <comm> <program> [<args> ...] +.Ve +.PP +For example, using a serial port, you might say: +.PP +.Vb 1 +\& target> gdbserver /dev/com1 emacs foo.txt +.Ve +.PP +This tells \fBgdbserver\fR to debug emacs with an argument of foo.txt, and +to communicate with \s-1GDB\s0 via \fI/dev/com1\fR. \fBgdbserver\fR now +waits patiently for the host \s-1GDB\s0 to communicate with it. +.PP +To use a \s-1TCP\s0 connection, you could say: +.PP +.Vb 1 +\& target> gdbserver host:2345 emacs foo.txt +.Ve +.PP +This says pretty much the same thing as the last example, except that we are +going to communicate with the \f(CW\*(C`host\*(C'\fR \s-1GDB\s0 via \s-1TCP.\s0 The \f(CW\*(C`host:2345\*(C'\fR argument means +that we are expecting to see a \s-1TCP\s0 connection from \f(CW\*(C`host\*(C'\fR to local \s-1TCP\s0 port +2345. (Currently, the \f(CW\*(C`host\*(C'\fR part is ignored.) You can choose any number you +want for the port number as long as it does not conflict with any existing \s-1TCP\s0 +ports on the target system. This same port number must be used in the host +GDBs \f(CW\*(C`target remote\*(C'\fR command, which will be described shortly. Note that if +you chose a port number that conflicts with another service, \fBgdbserver\fR will +print an error message and exit. +.PP +\&\fBgdbserver\fR can also attach to running programs. +This is accomplished via the \fB\-\-attach\fR argument. The syntax is: +.PP +.Vb 1 +\& target> gdbserver \-\-attach <comm> <pid> +.Ve +.PP +\&\fIpid\fR is the process \s-1ID\s0 of a currently running process. It isn't +necessary to point \fBgdbserver\fR at a binary for the running process. +.PP +To start \f(CW\*(C`gdbserver\*(C'\fR without supplying an initial command to run +or process \s-1ID\s0 to attach, use the \fB\-\-multi\fR command line option. +In such case you should connect using \f(CW\*(C`target extended\-remote\*(C'\fR to start +the program you want to debug. +.PP +.Vb 1 +\& target> gdbserver \-\-multi <comm> +.Ve +.PP +Usage (host side): +.PP +You need an unstripped copy of the target program on your host system, since +\&\s-1GDB\s0 needs to examine its symbol tables and such. Start up \s-1GDB\s0 as you normally +would, with the target program as the first argument. (You may need to use the +\&\fB\-\-baud\fR option if the serial line is running at anything except 9600 baud.) +That is \f(CW\*(C`gdb TARGET\-PROG\*(C'\fR, or \f(CW\*(C`gdb \-\-baud BAUD TARGET\-PROG\*(C'\fR. After that, the only +new command you need to know about is \f(CW\*(C`target remote\*(C'\fR +(or \f(CW\*(C`target extended\-remote\*(C'\fR). Its argument is either +a device name (usually a serial device, like \fI/dev/ttyb\fR), or a \f(CW\*(C`HOST:PORT\*(C'\fR +descriptor. For example: +.PP +.Vb 1 +\& (gdb) target remote /dev/ttyb +.Ve +.PP +communicates with the server via serial line \fI/dev/ttyb\fR, and: +.PP +.Vb 1 +\& (gdb) target remote the\-target:2345 +.Ve +.PP +communicates via a \s-1TCP\s0 connection to port 2345 on host `the\-target', where +you previously started up \fBgdbserver\fR with the same port number. Note that for +\&\s-1TCP\s0 connections, you must start up \fBgdbserver\fR prior to using the `target remote' +command, otherwise you may get an error that looks something like +`Connection refused'. +.PP +\&\fBgdbserver\fR can also debug multiple inferiors at once, +described in +the \s-1GDB\s0 manual in node \f(CW\*(C`Inferiors Connections and Programs\*(C'\fR +\&\*(-- shell command \f(CW\*(C`info \-f gdb \-n \*(AqInferiors Connections and Programs\*(Aq\*(C'\fR. +In such case use the \f(CW\*(C`extended\-remote\*(C'\fR \s-1GDB\s0 command variant: +.PP +.Vb 1 +\& (gdb) target extended\-remote the\-target:2345 +.Ve +.PP +The \fBgdbserver\fR option \fB\-\-multi\fR may or may not be used in such +case. +.SH "OPTIONS" +.IX Header "OPTIONS" +There are three different modes for invoking \fBgdbserver\fR: +.IP "\(bu" 4 +Debug a specific program specified by its program name: +.Sp +.Vb 1 +\& gdbserver <comm> <prog> [<args>...] +.Ve +.Sp +The \fIcomm\fR parameter specifies how should the server communicate +with \s-1GDB\s0; it is either a device name (to use a serial line), +a \s-1TCP\s0 port number (\f(CW\*(C`:1234\*(C'\fR), or \f(CW\*(C`\-\*(C'\fR or \f(CW\*(C`stdio\*(C'\fR to use +stdin/stdout of \f(CW\*(C`gdbserver\*(C'\fR. Specify the name of the program to +debug in \fIprog\fR. Any remaining arguments will be passed to the +program verbatim. When the program exits, \s-1GDB\s0 will close the +connection, and \f(CW\*(C`gdbserver\*(C'\fR will exit. +.IP "\(bu" 4 +Debug a specific program by specifying the process \s-1ID\s0 of a running +program: +.Sp +.Vb 1 +\& gdbserver \-\-attach <comm> <pid> +.Ve +.Sp +The \fIcomm\fR parameter is as described above. Supply the process \s-1ID\s0 +of a running program in \fIpid\fR; \s-1GDB\s0 will do everything +else. Like with the previous mode, when the process \fIpid\fR exits, +\&\s-1GDB\s0 will close the connection, and \f(CW\*(C`gdbserver\*(C'\fR will exit. +.IP "\(bu" 4 +Multi-process mode \*(-- debug more than one program/process: +.Sp +.Vb 1 +\& gdbserver \-\-multi <comm> +.Ve +.Sp +In this mode, \s-1GDB\s0 can instruct \fBgdbserver\fR which +command(s) to run. Unlike the other 2 modes, \s-1GDB\s0 will not +close the connection when a process being debugged exits, so you can +debug several processes in the same session. +.PP +In each of the modes you may specify these options: +.IP "\fB\-\-help\fR" 4 +.IX Item "--help" +List all options, with brief explanations. +.IP "\fB\-\-version\fR" 4 +.IX Item "--version" +This option causes \fBgdbserver\fR to print its version number and exit. +.IP "\fB\-\-attach\fR" 4 +.IX Item "--attach" +\&\fBgdbserver\fR will attach to a running program. The syntax is: +.Sp +.Vb 1 +\& target> gdbserver \-\-attach <comm> <pid> +.Ve +.Sp +\&\fIpid\fR is the process \s-1ID\s0 of a currently running process. It isn't +necessary to point \fBgdbserver\fR at a binary for the running process. +.IP "\fB\-\-multi\fR" 4 +.IX Item "--multi" +To start \f(CW\*(C`gdbserver\*(C'\fR without supplying an initial command to run +or process \s-1ID\s0 to attach, use this command line option. +Then you can connect using \f(CW\*(C`target extended\-remote\*(C'\fR and start +the program you want to debug. The syntax is: +.Sp +.Vb 1 +\& target> gdbserver \-\-multi <comm> +.Ve +.IP "\fB\-\-debug\fR" 4 +.IX Item "--debug" +Instruct \f(CW\*(C`gdbserver\*(C'\fR to display extra status information about the debugging +process. +This option is intended for \f(CW\*(C`gdbserver\*(C'\fR development and for bug reports to +the developers. +.IP "\fB\-\-remote\-debug\fR" 4 +.IX Item "--remote-debug" +Instruct \f(CW\*(C`gdbserver\*(C'\fR to display remote protocol debug output. +This option is intended for \f(CW\*(C`gdbserver\*(C'\fR development and for bug reports to +the developers. +.IP "\fB\-\-debug\-file=\fR\fIfilename\fR" 4 +.IX Item "--debug-file=filename" +Instruct \f(CW\*(C`gdbserver\*(C'\fR to send any debug output to the given \fIfilename\fR. +This option is intended for \f(CW\*(C`gdbserver\*(C'\fR development and for bug reports to +the developers. +.IP "\fB\-\-debug\-format=option1\fR[\fB,option2,...\fR]" 4 +.IX Item "--debug-format=option1[,option2,...]" +Instruct \f(CW\*(C`gdbserver\*(C'\fR to include extra information in each line +of debugging output. +.IP "\fB\-\-wrapper\fR" 4 +.IX Item "--wrapper" +Specify a wrapper to launch programs +for debugging. The option should be followed by the name of the +wrapper, then any command-line arguments to pass to the wrapper, then +\&\f(CW\*(C`\-\-\*(C'\fR indicating the end of the wrapper arguments. +.IP "\fB\-\-once\fR" 4 +.IX Item "--once" +By default, \fBgdbserver\fR keeps the listening \s-1TCP\s0 port open, so that +additional connections are possible. However, if you start \f(CW\*(C`gdbserver\*(C'\fR +with the \fB\-\-once\fR option, it will stop listening for any further +connection attempts after connecting to the first \s-1GDB\s0 session. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +The full documentation for \s-1GDB\s0 is maintained as a Texinfo manual. +If the \f(CW\*(C`info\*(C'\fR and \f(CW\*(C`gdb\*(C'\fR programs and \s-1GDB\s0's Texinfo +documentation are properly installed at your site, the command +.PP +.Vb 1 +\& info gdb +.Ve +.PP +should give you access to the complete manual. +.PP +\&\fIUsing \s-1GDB: A\s0 Guide to the \s-1GNU\s0 Source-Level Debugger\fR, +Richard M. Stallman and Roland H. Pesch, July 1991. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1988\-2020 Free Software Foundation, Inc. +.PP +Permission is granted to copy, distribute and/or modify this document +under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with the +Invariant Sections being \*(L"Free Software\*(R" and \*(L"Free Software Needs +Free Documentation\*(R", with the Front-Cover Texts being \*(L"A \s-1GNU\s0 Manual,\*(R" +and with the Back-Cover Texts as in (a) below. +.PP +(a) The \s-1FSF\s0's Back-Cover Text is: \*(L"You are free to copy and modify +this \s-1GNU\s0 Manual. Buying copies from \s-1GNU\s0 Press supports the \s-1FSF\s0 in +developing \s-1GNU\s0 and promoting software freedom.\*(R"