diff options
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 92f59d7..971638b 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -1545,10 +1545,16 @@ read_ofile_symtab (pst) processing_gcc_compilation = 0; if (bufp->n_type == N_TEXT) { + const char *tempstring = namestring; + if (STREQ (namestring, GCC_COMPILED_FLAG_SYMBOL)) processing_gcc_compilation = 1; else if (STREQ (namestring, GCC2_COMPILED_FLAG_SYMBOL)) processing_gcc_compilation = 2; + if (tempstring[0] == bfd_get_symbol_leading_char (symfile_bfd)) + ++tempstring; + if (STREQN (tempstring, "__gnu_compiled", 14)) + processing_gcc_compilation = 2; } /* Try to select a C++ demangling based on the compilation unit |