diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-07-06 20:39:31 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-07-06 20:39:31 +0000 |
commit | 85a961c6a12151673dd31463b66ab32f742242e9 (patch) | |
tree | 746d5de9d666ef652888f44adcb4cf2858814dd0 /gas/doc | |
parent | 1d5d75e90a9b5056199ad43a521c3a77bce6fc2a (diff) | |
download | gdb-85a961c6a12151673dd31463b66ab32f742242e9.zip gdb-85a961c6a12151673dd31463b66ab32f742242e9.tar.gz gdb-85a961c6a12151673dd31463b66ab32f742242e9.tar.bz2 |
Patches from Jerry Blakely <gerry_blakley@wellfleet.com>:
* as.c (listing_filename): New static variable.
(show_usage): Mention -a=file.
(parse_args): Support = option of -a to set name of listing file.
(main): Pass listing_filename to listing_print.
* listing.c (list_file): New static variable.
(various): Replace printf with fprintf to list_file.
(listing_print): If name argument is not NULL, open it as
list_file.
* doc/as.texinfo, doc/as.1: Document -a=file.
PR 6354.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/as.1 | 34 | ||||
-rw-r--r-- | gas/doc/as.texinfo | 10 |
2 files changed, 30 insertions, 14 deletions
diff --git a/gas/doc/as.1 b/gas/doc/as.1 index 8a9efe1..09e4c5d 100644 --- a/gas/doc/as.1 +++ b/gas/doc/as.1 @@ -8,8 +8,10 @@ GNU as\-\-the portable GNU assembler. .SH SYNOPSIS .na .B as -.RB "[\|" \-a "\||\|" \-al "\||\|" -as\c -\&\|] +.RB "[\|" \-a "[\|" dhlns "\|]" \c +\&\[\|\=\c +.I file\c +\&\|]\|] .RB "[\|" \-D "\|]" .RB "[\|" \-f "\|]" .RB "[\|" \-I @@ -118,15 +120,25 @@ grave problem that stops the assembly. .SH OPTIONS .TP -.BR \-a \||\| \-al \||\| \-as -Turn on assembly listings; `\|\c -.B \-al\c -\&\|', listing only, `\|\c -.B \-as\c -\&\|', symbols -only, `\|\c -.B \-a\c -\&\|', everything. +.BR \-a +Turn on assembly listings. There are various suboptions. +.B d +omits debugging directives. +.B h +includes the high level source code; this is only available if the +source file can be found, and the code was compiled with +.B \-g. +.B l +includes an assembly listing. +.B n +omits forms processing. +.B s +includes a symbol listing. +.B = +.I file +sets the listing file name; this must be the last suboption. +The default suboptions are +.B hls. .TP .B \-D This option is accepted only for script compatibility with calls to diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index b33f38b..91eda83 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -194,7 +194,7 @@ Here is a brief summary of how to invoke @code{@value{AS}}. For details, @c We don't use deffn and friends for the following because they seem @c to be limited to one line for the header. @smallexample -@value{AS} [ -a[dhlns] ] [ -D ] [ -f ] [ --help ] +@value{AS} [ -a[dhlns][=file] ] [ -D ] [ -f ] [ --help ] [ -I @var{dir} ] [ -J ] [ -K ] [ -L ] [ -o @var{objfile} ] [ -R ] [ --statistics ] [ -v ] [ -version ] [ --version ] [ -W ] [ -w ] [ -x ] [ -Z ] @@ -254,11 +254,15 @@ omit forms processing @item -as include symbols + +@item =file +set the name of the listing file @end table You may combine these options; for example, use @samp{-aln} for assembly -listing without forms processing. By itself, @samp{-a} defaults to -@samp{-ahls}---that is, all listings turned on. +listing without forms processing. The @samp{=file} option, if used, must be +the last one. By itself, @samp{-a} defaults to @samp{-ahls}---that is, all +listings turned on. @item -D Ignored. This option is accepted for script compatibility with calls to |