X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmdebugread.c;h=7e098009c7de5840429ff2cf3513814c3cb927d7;hb=d320c2b5e181828418224521f2acd2ff48e127f4;hp=6cf2cad182b7ea6cb49fe06e824a6bb95c516798;hpb=1d94a5a36a614cf7ebe259d7660f4fa725f38ee2;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 6cf2cad182..7e098009c7 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -3739,11 +3739,12 @@ parse_partial_symbols (minimal_symbol_reader &reader, /* Remove the dummy psymtab created for -O3 images above, if it is still empty, to enable the detection of stripped executables. */ - if (objfile->psymtabs->next == NULL - && objfile->psymtabs->number_of_dependencies == 0 - && objfile->psymtabs->n_global_syms == 0 - && objfile->psymtabs->n_static_syms == 0) - objfile->psymtabs = NULL; + pst = objfile->partial_symtabs->psymtabs; + if (pst->next == NULL + && pst->number_of_dependencies == 0 + && pst->n_global_syms == 0 + && pst->n_static_syms == 0) + objfile->partial_symtabs->psymtabs = NULL; } /* If the current psymbol has an enumerated type, we need to add