Format improvements, mostly for @smallbook (including reformatted table

of config options).
This commit is contained in:
Roland Pesch
1991-11-08 20:57:43 +00:00
parent c4a6d8f12a
commit 203eea5d62

View File

@ -24,6 +24,8 @@ m4; Berkeley won't do) a file suitable for formatting. See the text in
_fi__(0) _fi__(0)
_include__(gdbVN.m4) _include__(gdbVN.m4)
@c @smallbook
@c @cropmarks
@tex @tex
\def\$#1${{#1}} % Kluge: collect RCS revision info without $...$ \def\$#1${{#1}} % Kluge: collect RCS revision info without $...$
\xdef\manvers{\$Revision$} % For use in headers, footers too \xdef\manvers{\$Revision$} % For use in headers, footers too
@ -80,10 +82,8 @@ _if__(!_GENERIC__)
@subtitle{On _HOST__ Systems} @subtitle{On _HOST__ Systems}
_fi__(!_GENERIC__) _fi__(!_GENERIC__)
@sp 1 @sp 1
@c Maybe crank this up to "Fourth Edition" when released at FSF
@c @subtitle Third Edition---_GDBN__ version _GDB_VN__
@subtitle _GDBN__ version _GDB_VN__ @subtitle _GDBN__ version _GDB_VN__
@subtitle July 1991 @subtitle November 1991
@author{Richard M. Stallman@qquad @hfill Free Software Foundation} @author{Richard M. Stallman@qquad @hfill Free Software Foundation}
@author{Roland H. Pesch@qquad @hfill Cygnus Support} @author{Roland H. Pesch@qquad @hfill Cygnus Support}
@page @page
@ -599,9 +599,13 @@ Let's use _GDBN__ to try to see what's going on.
@smallexample @smallexample
$ @i{_GDBP__ m4} $ @i{_GDBP__ m4}
GDB is free software and you are welcome to distribute copies of it @c FIXME: this falsifies the exact text played out, to permit smallbook
under certain conditions; type "show copying" to see the conditions. @c FIXME... format to come out better.
There is absolutely no warranty for GDB; type "show warranty" for details. GDB is free software and you are welcome to distribute copies
of it under certain conditions; type "show copying" to see
the conditions.
There is absolutely no warranty for GDB; type "show warranty"
for details.
GDB _GDB_VN__, Copyright 1991 Free Software Foundation, Inc... GDB _GDB_VN__, Copyright 1991 Free Software Foundation, Inc...
(_GDBP__) (_GDBP__)
@end smallexample @end smallexample
@ -649,7 +653,8 @@ context where it stops.
@smallexample @smallexample
@i{changequote(<QUOTE>,<UNQUOTE>)} @i{changequote(<QUOTE>,<UNQUOTE>)}
Breakpoint 1, m4_changequote (argc=3, argv=0x33c70) at builtin.c:879 Breakpoint 1, m4_changequote (argc=3, argv=0x33c70)
at builtin.c:879
879 if (bad_argc(TOKEN_DATA_TEXT(argv[0]), argc, 1, 3)) 879 if (bad_argc(TOKEN_DATA_TEXT(argv[0]), argc, 1, 3))
@end smallexample @end smallexample
@ -659,7 +664,8 @@ the next line of the current function.
@smallexample @smallexample
(_GDBP__) @i{n} (_GDBP__) @i{n}
882 set_quotes((argc >= 2) ? TOKEN_DATA_TEXT(argv[1]) : nil, 882 set_quotes((argc >= 2) ? TOKEN_DATA_TEXT(argv[1])\
: nil,
@end smallexample @end smallexample
@noindent @noindent
@ -686,7 +692,8 @@ active subroutine.
(_GDBP__) @i{bt} (_GDBP__) @i{bt}
#0 set_quotes (lq=0x34c78 "<QUOTE>", rq=0x34c88 "<UNQUOTE>") #0 set_quotes (lq=0x34c78 "<QUOTE>", rq=0x34c88 "<UNQUOTE>")
at input.c:530 at input.c:530
#1 0x6344 in m4_changequote (argc=3, argv=0x33c70) at builtin.c:882 #1 0x6344 in m4_changequote (argc=3, argv=0x33c70)
at builtin.c:882
#2 0x8174 in expand_macro (sym=0x33320) at macro.c:242 #2 0x8174 in expand_macro (sym=0x33320) at macro.c:242
#3 0x7a88 in expand_token (obs=0x0, t=209696, td=0xf7fffa30) #3 0x7a88 in expand_token (obs=0x0, t=209696, td=0xf7fffa30)
at macro.c:71 at macro.c:71
@ -702,11 +709,11 @@ falling into the @code{xstrdup} subroutine.
(_GDBP__) @i{s} (_GDBP__) @i{s}
0x3b5c 532 if (rquote != def_rquote) 0x3b5c 532 if (rquote != def_rquote)
(_GDBP__) @i{s} (_GDBP__) @i{s}
0x3b80 535 lquote = (lq == nil || *lq == '\0') ? def_lquote :\ 0x3b80 535 lquote = (lq == nil || *lq == '\0') ? \
xstrdup(lq); def_lquote : xstrdup(lq);
(_GDBP__) @i{n} (_GDBP__) @i{n}
536 rquote = (rq == nil || *rq == '\0') ? def_rquote : xstrdup\ 536 rquote = (rq == nil || *rq == '\0') ? def_rquote\
(rq); : xstrdup(rq);
(_GDBP__) @i{n} (_GDBP__) @i{n}
538 len_lquote = strlen(rquote); 538 len_lquote = strlen(rquote);
@end smallexample @end smallexample
@ -733,10 +740,10 @@ surrounding the current line, with the @code{l} (@code{list}) command.
(_GDBP__) @i{l} (_GDBP__) @i{l}
533 xfree(rquote); 533 xfree(rquote);
534 534
535 lquote = (lq == nil || *lq == '\0') ? def_lquote : xstrdup\ 535 lquote = (lq == nil || *lq == '\0') ? def_lquote\
(lq); : xstrdup (lq);
536 rquote = (rq == nil || *rq == '\0') ? def_rquote : xstrdup\ 536 rquote = (rq == nil || *rq == '\0') ? def_rquote\
(rq); : xstrdup (rq);
537 537
538 len_lquote = strlen(rquote); 538 len_lquote = strlen(rquote);
539 len_rquote = strlen(lquote); 539 len_rquote = strlen(lquote);
@ -1100,8 +1107,10 @@ user-defined -- User-defined commands
aliases -- Aliases of other commands aliases -- Aliases of other commands
obscure -- Obscure features obscure -- Obscure features
Type "help" followed by a class name for a list of commands in that class. Type "help" followed by a class name for a list of
Type "help" followed by command name for full documentation. commands in that class.
Type "help" followed by command name for full
documentation.
Command name abbreviations are allowed if unambiguous. Command name abbreviations are allowed if unambiguous.
(_GDBP__) (_GDBP__)
@end smallexample @end smallexample
@ -1119,7 +1128,8 @@ List of commands:
show -- Generic command for showing things set with "set" show -- Generic command for showing things set with "set"
info -- Generic command for printing status info -- Generic command for printing status
Type "help" followed by command name for full documentation. Type "help" followed by command name for full
documentation.
Command name abbreviations are allowed if unambiguous. Command name abbreviations are allowed if unambiguous.
(_GDBP__) (_GDBP__)
@end smallexample @end smallexample
@ -2097,8 +2107,8 @@ Specify a list of commands for breakpoint number @var{bnum}. The commands
themselves appear on the following lines. Type a line containing just themselves appear on the following lines. Type a line containing just
@code{end} to terminate the commands. @code{end} to terminate the commands.
To remove all commands from a breakpoint, type @code{commands} followed To remove all commands from a breakpoint, type @code{commands} and
immediately by @code{end}; that is, give no commands. follow it immediately with @code{end}; that is, give no commands.
With no @var{bnum} argument, @code{commands} refers to the last With no @var{bnum} argument, @code{commands} refers to the last
breakpoint or watchpoint set (not to the breakpoint most recently breakpoint or watchpoint set (not to the breakpoint most recently
@ -2631,7 +2641,8 @@ Here is an example of a backtrace. It was made with the command
@smallexample @smallexample
@group @group
#0 m4_traceon (obs=0x24eb0, argc=1, argv=0x2b8c8) at builtin.c:993 #0 m4_traceon (obs=0x24eb0, argc=1, argv=0x2b8c8)
at builtin.c:993
#1 0x6e38 in expand_macro (sym=0x2b600) at macro.c:242 #1 0x6e38 in expand_macro (sym=0x2b600) at macro.c:242
#2 0x6840 in expand_token (obs=0x0, t=177664, td=0xf7fffb08) #2 0x6840 in expand_token (obs=0x0, t=177664, td=0xf7fffb08)
at macro.c:71 at macro.c:71
@ -2702,7 +2713,8 @@ example:
@smallexample @smallexample
(_GDBP__) up (_GDBP__) up
#1 0x22f0 in main (argc=1, argv=0xf7fffbf4, env=0xf7fffbfc) at env.c:10 #1 0x22f0 in main (argc=1, argv=0xf7fffbf4, env=0xf7fffbfc)
at env.c:10
10 read_input_file (argv[i]); 10 read_input_file (argv[i]);
@end smallexample @end smallexample
@ -3682,7 +3694,8 @@ For example, given the declarations
@smallexample @smallexample
typedef enum @{Tree, Bug@} Species; typedef enum @{Tree, Bug@} Species;
typedef enum @{Big_tree, Acorn, Seedling@} Tree_forms; typedef enum @{Big_tree, Acorn, Seedling@} Tree_forms;
typedef enum @{Caterpillar, Cocoon, Butterfly@} Bug_forms; typedef enum @{Caterpillar, Cocoon, Butterfly@}
Bug_forms;
struct thing @{ struct thing @{
Species it; Species it;
@ -6650,18 +6663,22 @@ Execute until exit from the selected stack frame, like the _GDBN__
@item M-c @item M-c
Continue execution of the program, like the _GDBN__ @code{continue} Continue execution of the program, like the _GDBN__ @code{continue}
command. @emph{Warning:} In Emacs v19, this command is @kbd{C-c C-p}. command.
@emph{Warning:} In Emacs v19, this command is @kbd{C-c C-p}.
@item M-u @item M-u
Go up the number of frames indicated by the numeric argument Go up the number of frames indicated by the numeric argument
(@pxref{Arguments, , Numeric Arguments, emacs, The GNU Emacs Manual}), (@pxref{Arguments, , Numeric Arguments, emacs, The GNU Emacs Manual}),
like the _GDBN__ @code{up} command. @emph{Warning:} In Emacs v19, this like the _GDBN__ @code{up} command.
command is @kbd{C-c C-u}.@refill
@emph{Warning:} In Emacs v19, this command is @kbd{C-c C-u}.@refill
@item M-d @item M-d
Go down the number of frames indicated by the numeric argument, like the Go down the number of frames indicated by the numeric argument, like the
_GDBN__ @code{down} command. @emph{Warning:} In Emacs v19, this command _GDBN__ @code{down} command.
is @kbd{C-c C-d}.
@emph{Warning:} In Emacs v19, this command is @kbd{C-c C-d}.
@item C-x & @item C-x &
Read the number where the cursor is positioned, and insert it at the end Read the number where the cursor is positioned, and insert it at the end
@ -7103,8 +7120,10 @@ subordinate directories in the _GDBN__ distribution (if you only want to
configure that subdirectory); but be sure to specify a path to it. For configure that subdirectory); but be sure to specify a path to it. For
example, to configure only the @code{bfd} subdirectory, example, to configure only the @code{bfd} subdirectory,
@example @example
@group
cd gdb-_GDB_VN__/bfd cd gdb-_GDB_VN__/bfd
../configure @var{host} ../configure @var{host}
@end group
@end example @end example
You can install @code{_GDBP__} anywhere; it has no hardwired paths. However, You can install @code{_GDBP__} anywhere; it has no hardwired paths. However,
@ -7173,13 +7192,13 @@ configure sun4 +target=vxworks960
@end example @end example
@noindent @noindent
creates the following directories: creates the following directories:
@smallexample @example
gdb-_GDB_VN__/H-sun4/T-vxworks960 gdb-_GDB_VN__/H-sun4/T-vxworks960
gdb-_GDB_VN__/bfd/H-sun4/T-vxworks960 gdb-_GDB_VN__/bfd/H-sun4/T-vxworks960
gdb-_GDB_VN__/gdb/H-sun4/T-vxworks960 gdb-_GDB_VN__/gdb/H-sun4/T-vxworks960
gdb-_GDB_VN__/libiberty/H-sun4/T-vxworks960 gdb-_GDB_VN__/libiberty/H-sun4/T-vxworks960
gdb-_GDB_VN__/readline/H-sun4/T-vxworks960 gdb-_GDB_VN__/readline/H-sun4/T-vxworks960
@end smallexample @end example
When you run @code{make} to build a program or library, you must run it When you run @code{make} to build a program or library, you must run it
in a configured directory. If you made a single configuration, in a configured directory. If you made a single configuration,
@ -7223,102 +7242,75 @@ prefix'' column ending in a @samp{*} may be followed by a release number.
@ifinfo @ifinfo
@example @example
ARCHITECTURE VENDOR OS prefix ARCHITECTURE VENDOR OS prefix
------------+------------+------------- ------------+--------------------------+---------------------------
| | | |
580 | altos | aix* 580 | altos hp | aix* msdos*
a29k | amd | amigados a29k | amd ibm | amigados newsos*
alliant | amdahl | aout alliant | amdahl intel | aout nindy*
arm | aout | bout arm | aout isi | bout osf*
c1 | apollo | bsd* c1 | apollo little | bsd* sco*
c2 | att | coff c2 | att mips | coff sunos*
cray2 | bcs | ctix* cray2 | bcs motorola | ctix* svr4
h8300 | bout | dgux* h8300 | bout ncr | dgux* sym*
i386 | bull | dynix* i386 | bull next | dynix* sysv*
i860 | cbm | ebmon i860 | cbm nyu | ebmon ultrix*
i960 | coff | esix* i960 | coff sco | esix* unicos*
m68000 | convergent | hds m68000 | convergent sequent | hds unos*
m68k | convex | hpux* m68k | convex sgi | hpux* uts
m88k | cray | irix* m88k | cray sony | irix* v88r*
mips | dec | isc* mips | dec sun | isc* vms*
ns32k | encore | kern ns32k | encore unicom | kern vxworks*
pyramid | gould | mach* pyramid | gould utek | mach*
romp | hitachi | msdos* romp | hitachi wrs |
rs6000 | hp | newsos* rs6000 | |
sparc | ibm | nindy* sparc | |
tahoe | intel | osf* tahoe | |
tron | isi | sco* tron | |
vax | little | sunos* vax | |
xmp | mips | svr4 xmp | |
ymp | motorola | sym* ymp | |
| ncr | sysv*
| next | ultrix*
| nyu | unicos*
| sco | unos*
| sequent | uts
| sgi | v88r*
| sony | vms*
| sun | vxworks*
| unicom |
| utek |
| wrs |
@end example @end example
@end ifinfo
@tex
%\vskip\parskip
\vskip \baselineskip
\hfil\vbox{\offinterlineskip
\halign{\strut\tt #\hfil\ &\vrule#&\strut\ \tt #\hfil\ &\strut\ \tt #\hfil
\ &\vrule#&\strut\ \tt #\hfil\ &\strut\ \tt #\hfil \cr
{\bf Architecture} &&{\bf Vendor} &&&{\bf OS prefix}\cr
\multispan7\hrulefill\cr
580 && altos & hp && aix* & msdos* \cr
a29k && amd & ibm && amigados & newsos* \cr
alliant && amdahl & intel && aout & nindy* \cr
arm && aout & isi && bout & osf* \cr
c1 && apollo & little && bsd* & sco* \cr
c2 && att & mips && coff & sunos* \cr
cray2 && bcs & motorola && ctix* & svr4 \cr
h8300 && bout & ncr && dgux* & sym* \cr
i386 && bull & next && dynix* & sysv* \cr
i860 && cbm & nyu && ebmon & ultrix* \cr
i960 && coff & sco && esix* & unicos* \cr
m68000 && convergent& sequent && hds & unos* \cr
m68k && convex & sgi && hpux* & uts \cr
m88k && cray & sony && irix* & v88r* \cr
mips && dec & sun && isc* & vms* \cr
ns32k && encore & unicom && kern & vxworks* \cr
pyramid && gould & utek && mach* & \cr
romp && hitachi & wrs && & \cr
rs6000 && & && & \cr
sparc && & && & \cr
tahoe && & && & \cr
tron && & && & \cr
vax && & && & \cr
xmp && & && & \cr
ymp && & && & \cr
}\hfil}
@end tex
@quotation @quotation
@emph{Warning:} Many combinations of architecture, vendor, and OS are @emph{Warning:} Many combinations of architecture, vendor, and OS are
untested. untested.
@end quotation @end quotation
@end ifinfo
@c FIXME: this table is probably screwed in @smallbook. Try setting
@c FIXME...smallbook fonts?
@tex
%\vskip\parskip
\advance\baselineskip -1pt
% TERRIBLE KLUGE ABOVE makes table fit on one page (large format, prob
% not smallbook). FIXME Reformat table for next time!!
\vskip \baselineskip
\halign{\hskip\parindent\tt #\hfil &\qquad#&\tt #\hfil &\qquad#&\tt
#\hfil &\qquad\qquad\it #\hfil\cr
{\bf Architecture} &&{\bf Vendor} &&{\bf OS prefix}\cr
\multispan5\hrulefill\cr
580 && altos && aix* \cr
a29k && amd && amigados \cr
alliant && amdahl && aout \cr
arm && aout && bout \cr
c1 && apollo && bsd* \cr
c2 && att && coff \cr
cray2 && bcs && ctix* \cr
h8300 && bout && dgux* \cr
i386 && bull && dynix* \cr
i860 && cbm && ebmon &Warning: \cr
i960 && coff && esix* &Many combinations \cr
m68000 && convergent && hds &of architecture, vendor \cr
m68k && convex && hpux* &and OS are untested. \cr
m88k && cray && irix* \cr
mips && dec && isc* \cr
ns32k && encore && kern \cr
pyramid && gould && mach* \cr
romp && hitachi && msdos* \cr
rs6000 && hp && newsos* \cr
sparc && ibm && nindy* \cr
tahoe && intel && osf* \cr
tron && isi && sco* \cr
vax && little && sunos* \cr
xmp && mips && svr4 \cr
ymp && motorola && sym* \cr
&& ncr && sysv* \cr
&& next && ultrix* \cr
&& nyu && unicos* \cr
&& sco && unos* \cr
&& sequent && uts \cr
&& sgi && v88r* \cr
&& sony && vms* \cr
&& sun && vxworks* \cr
&& unicom && \cr
&& utek && \cr
&& wrs && \cr
}
@end tex
The @code{configure} script accompanying _GDBN__ _GDB_VN__ does not provide The @code{configure} script accompanying _GDBN__ _GDB_VN__ does not provide
any query facility to list all supported host and target names or any query facility to list all supported host and target names or
@ -7829,13 +7821,13 @@ convey the exclusion of warranty; and each file should have at least
the ``copyright'' line and a pointer to where the full notice is found. the ``copyright'' line and a pointer to where the full notice is found.
@smallexample @smallexample
@var{one line to give the program's name and a brief idea of what it does.} @var{one line to give the program's name and an idea of what it does.}
Copyright (C) 19@var{yy} @var{name of author} Copyright (C) 19@var{yy} @var{name of author}
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or
it under the terms of the GNU General Public License as published by modify it under the terms of the GNU General Public License
the Free Software Foundation; either version 2 of the License, or as published by the Free Software Foundation; either version 2
(at your option) any later version. of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -7843,8 +7835,9 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA.
@end smallexample @end smallexample
Also add information on how to contact you by electronic and paper mail. Also add information on how to contact you by electronic and paper mail.
@ -7854,9 +7847,10 @@ when it starts in an interactive mode:
@smallexample @smallexample
Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author} Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
This is free software, and you are welcome to redistribute it type `show w'. This is free software, and you are welcome
under certain conditions; type `show c' for details. to redistribute it under certain conditions; type `show c'
for details.
@end smallexample @end smallexample
The hypothetical commands @samp{show w} and @samp{show c} should show The hypothetical commands @samp{show w} and @samp{show c} should show
@ -7869,13 +7863,14 @@ You should also get your employer (if you work as a programmer) or your
school, if any, to sign a ``copyright disclaimer'' for the program, if school, if any, to sign a ``copyright disclaimer'' for the program, if
necessary. Here is a sample; alter the names: necessary. Here is a sample; alter the names:
@example @smallexample
Yoyodyne, Inc., hereby disclaims all copyright interest in the program Yoyodyne, Inc., hereby disclaims all copyright interest in
`Gnomovision' (which makes passes at compilers) written by James Hacker. the program `Gnomovision' (which makes passes at compilers)
written by James Hacker.
@var{signature of Ty Coon}, 1 April 1989 @var{signature of Ty Coon}, 1 April 1989
Ty Coon, President of Vice Ty Coon, President of Vice
@end example @end smallexample
This General Public License does not permit incorporating your program into This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may proprietary programs. If your program is a subroutine library, you may