diff options
author | Nick Clifton <nickc@redhat.com> | 2000-12-05 00:56:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-12-05 00:56:09 +0000 |
commit | bccba5f08caf84add326b6e3541680bf1f5f8746 (patch) | |
tree | 27112b17fa82d5c9b9aa9adae45f27ed5f3a2a60 /gas/stabs.c | |
parent | bb4e03e55591d8751dc9a669afd57f033c14fc22 (diff) | |
download | gdb-bccba5f08caf84add326b6e3541680bf1f5f8746.zip gdb-bccba5f08caf84add326b6e3541680bf1f5f8746.tar.gz gdb-bccba5f08caf84add326b6e3541680bf1f5f8746.tar.bz2 |
Add outputting_stabs_line_debug varaible and D10v code to use it
Diffstat (limited to 'gas/stabs.c')
-rw-r--r-- | gas/stabs.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/stabs.c b/gas/stabs.c index f82b568..b1a0254 100644 --- a/gas/stabs.c +++ b/gas/stabs.c @@ -29,6 +29,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "aout/stab_gnu.h" +/* Holds whether the assembler is generating stabs line debugging + information or not. Potentially used by md_cleanup function. */ + +boolean outputting_stabs_line_debug = 0; + static void s_stab_generic PARAMS ((int, char *, char *)); static void generate_asm_file PARAMS ((int, char *)); @@ -568,6 +573,10 @@ stabs_generate_asm_lineno () char *buf; char sym[30]; + /* Let the world know that we are in the middle of generating a + piece of stabs line debugging information. */ + outputting_stabs_line_debug = 1; + /* Rather than try to do this in some efficient fashion, we just generate a string and then parse it again. That lets us use the existing stabs hook, which expect to see a string, rather than @@ -598,6 +607,7 @@ stabs_generate_asm_lineno () colon (sym); input_line_pointer = hold; + outputting_stabs_line_debug = 0; } /* Emit a function stab. |