2007-03-31 Pedro Alves * dbxread.c (read_ofile_symtab): Move current_objfile clearing to after end_stabs. --- gdb/dbxread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: src/gdb/dbxread.c =================================================================== --- src.orig/gdb/dbxread.c 2005-12-17 21:34:00.000000000 +0000 +++ src/gdb/dbxread.c 2007-03-31 21:31:42.000000000 +0100 @@ -2608,8 +2608,6 @@ read_ofile_symtab (struct partial_symtab } } - current_objfile = NULL; - /* In a Solaris elf file, this variable, which comes from the value of the N_SO symbol, will still be 0. Luckily, text_offset, which comes from pst->textlow is correct. */ @@ -2625,6 +2623,8 @@ read_ofile_symtab (struct partial_symtab pst->symtab = end_symtab (text_offset + text_size, objfile, SECT_OFF_TEXT (objfile)); end_stabs (); + + current_objfile = NULL; }