diff options
author | Richard Stallman <rms@gnu.org> | 1992-07-20 18:43:06 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-07-20 18:43:06 +0000 |
commit | 015712847ae83501000efdfce6b2c0878215bc8c (patch) | |
tree | a0238a897a0363e5a65f946aa99661fcfcffd3a5 /gcc | |
parent | 9d29d6930efd14bfd9fef51e75f0ca5b9b4ea05e (diff) | |
download | gcc-015712847ae83501000efdfce6b2c0878215bc8c.zip gcc-015712847ae83501000efdfce6b2c0878215bc8c.tar.gz gcc-015712847ae83501000efdfce6b2c0878215bc8c.tar.bz2 |
(dbxout_block): obey DBX_BLOCKS_FUNCTION_RELATIVE
(dbxout_block): obey DBX_BLOCKS_FUNCTION_RELATIVE
(dbxout_init): Use ASM_IDENTIFY_GCC_AFTER_SOURCE if defined.
From-SVN: r1644
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/dbxout.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index a00258a..1633330 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -424,6 +424,13 @@ dbxout_init (asm_file, input_file_name, syms) ASM_OUTPUT_INTERNAL_LABEL (asmfile, "Ltext", 0); #endif /* no DBX_OUTPUT_MAIN_SOURCE_FILENAME */ + /* Possibly output something to inform GDB that this compilation was by + GCC. It's easier for GDB to parse it when after the N_SO's. This + is used in Solaris 2. */ +#ifdef ASM_IDENTIFY_GCC_AFTER_SOURCE + ASM_IDENTIFY_GCC_AFTER_SOURCE (asmfile); +#endif + lastfile = input_file_name; next_type_number = 1; @@ -2165,6 +2172,10 @@ dbxout_block (block, depth, args) #else fprintf (asmfile, "%s %d,0,0,", ASM_STABN_OP, N_LBRAC); assemble_name (asmfile, buf); +#if DBX_BLOCKS_FUNCTION_RELATIVE + fputc ('-', asmfile); + assemble_name (asmfile, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl))); +#endif fprintf (asmfile, "\n"); #endif } @@ -2194,6 +2205,10 @@ dbxout_block (block, depth, args) #else fprintf (asmfile, "%s %d,0,0,", ASM_STABN_OP, N_RBRAC); assemble_name (asmfile, buf); +#if DBX_BLOCKS_FUNCTION_RELATIVE + fputc ('-', asmfile); + assemble_name (asmfile, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl))); +#endif fprintf (asmfile, "\n"); #endif } |