diff options
author | Pedro Alves <palves@redhat.com> | 2007-04-03 00:09:54 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2007-04-03 00:09:54 +0000 |
commit | e9112110ed1f2ebd8be652c3a2a6e16d49f52c2e (patch) | |
tree | f02a3e8a2cad27178a8357f89af94301aa14f5e7 /gdb/dbxread.c | |
parent | 497ad96a43a567504621af1606714e142d2d94d1 (diff) | |
download | gdb-e9112110ed1f2ebd8be652c3a2a6e16d49f52c2e.zip gdb-e9112110ed1f2ebd8be652c3a2a6e16d49f52c2e.tar.gz gdb-e9112110ed1f2ebd8be652c3a2a6e16d49f52c2e.tar.bz2 |
* dbxread.c (read_ofile_symtab): Move current_objfile
clearing to after end_stabs.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 33d164e..b26d00c 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -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; } |