diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-08-15 18:19:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-08-15 18:19:27 +0000 |
commit | cd924033054232730762c6ecf91c4dfd4d9f9cc7 (patch) | |
tree | d100c9e2cb2441f09c76d11115158cb4c16fe298 /gas/doc | |
parent | 00c7247bce4ed761b5506304828aad5f8dd5e936 (diff) | |
download | gdb-cd924033054232730762c6ecf91c4dfd4d9f9cc7.zip gdb-cd924033054232730762c6ecf91c4dfd4d9f9cc7.tar.gz gdb-cd924033054232730762c6ecf91c4dfd4d9f9cc7.tar.bz2 |
* as.h (enum debug_info_type): Define.
(debug_type): Declare.
* as.c (debug_type): New global variable.
(show_usage): Add --gstabs.
(parse_args): Handle --gstabs.
* read.c (generate_asm_lineno): Remove.
(read_a_source_file): Output stabs debugging if appropriate.
Change checks of generate_asm_lineno to check debug_type. Only
generate ECOFF debugging if ECOFF_DEBUGGING is defined.
* read.h (generate_asm_lineno): Don't declare.
(stabs_generate_asm_lineno): Declare.
* stabs.c (stabs_generate_asm_lineno): New function.
* ecoff.c (add_file): Use debug_type, not generate_asm_lineno.
Don't turn off debugging.
(add_file): Remove old #if 0 code.
(ecoff_new_file): Set debug_type, not generate_asm_lineno.
(ecoff_directive_end): Don't generate stabs line symbols.
(ecoff_generate_asm_lineno): Don't check stabs_seen. Don't set
generate_asm_lineno.
(line_label_cnt): Remove.
(ecoff_generate_asm_line_stab): Remove.
* ecoff.h (ecoff_generate_asm_line_stab): Don't declare.
* doc/as.texinfo, doc/as.1: Document --gstabs.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/as.1 | 5 | ||||
-rw-r--r-- | gas/doc/as.texinfo | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gas/doc/as.1 b/gas/doc/as.1 index 1ff0d0b..8aa32a8 100644 --- a/gas/doc/as.1 +++ b/gas/doc/as.1 @@ -15,6 +15,7 @@ GNU as \- the portable GNU assembler. .RB "[\|" \-D "\|]" .RB "[\|" \-\-defsym\ SYM=VAL "\|]" .RB "[\|" \-f "\|]" +.RB "[\|" \-\-gstabs "\|]" .RB "[\|" \-I .I path\c \&\|] @@ -163,6 +164,10 @@ to the search list for .B .include directives. .TP +.B \-\-gstabs +Generate stabs debugging information for each assembler line. This +may help debugging assembler code, if the debugger can handle it. +.TP .B \-K Issue warnings when difference tables altered for long displacements. .TP diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index 0d165d6..5ff1f76 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -199,7 +199,7 @@ Here is a brief summary of how to invoke @code{@value{AS}}. For details, @c to be limited to one line for the header. @smallexample @value{AS} [ -a[cdhlns][=file] ] [ -D ] [ --defsym @var{sym}=@var{val} ] - [ -f ] [ --help ] [ -I @var{dir} ] [ -J ] [ -K ] [ -L ] + [ -f ] [ --gstabs ] [ --help ] [ -I @var{dir} ] [ -J ] [ -K ] [ -L ] [ -o @var{objfile} ] [ -R ] [ --statistics ] [ -v ] [ -version ] [ --version ] [ -W ] [ -w ] [ -x ] [ -Z ] @ifset A29K @@ -293,6 +293,10 @@ indicates a hexadecimal value, and a leading @samp{0} indicates an octal value. ``fast''---skip whitespace and comment preprocessing (assume source is compiler output). +@item --gstabs +Generate stabs debugging information for each assembler line. This +may help debugging assembler code, if the debugger can handle it. + @item --help Print a summary of the command line options and exit. |