* dbxread.c (read_ofile_symtab): Move current_objfile
authorPedro Alves <palves@redhat.com>
Tue, 3 Apr 2007 00:09:54 +0000 (00:09 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 3 Apr 2007 00:09:54 +0000 (00:09 +0000)
clearing to after end_stabs.

gdb/ChangeLog
gdb/dbxread.c

index d11535d921b1746b5f89c30c1edd057a3c5adfe8..270d2f0dae73f92f4e2b0f27d6db250c74eab69d 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * dbxread.c (read_ofile_symtab): Move current_objfile
+       clearing to after end_stabs.
+
 2007-04-01  Andreas Schwab  <schwab@suse.de>
 
        * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
index 33d164e8c6c96ea0bc17eacad51c89caee0b9bbd..b26d00c6f22d2abc8198ed9ab410ebb566a1a012 100644 (file)
@@ -2608,8 +2608,6 @@ read_ofile_symtab (struct partial_symtab *pst)
        }
     }
 
-  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)
   pst->symtab = end_symtab (text_offset + text_size, objfile, SECT_OFF_TEXT (objfile));
 
   end_stabs ();
+
+  current_objfile = NULL;
 }
 \f