summaryrefslogtreecommitdiff
path: root/gdb/nlmread.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2003-02-20 18:31:14 +0000
committerDaniel Jacobowitz <dan@debian.org>2003-02-20 18:31:14 +0000
commitfc60cea0175a5d47b10eb619d74beba252c2e540 (patch)
tree8cd739637707c98e3180642550545f1ed185a8d0 /gdb/nlmread.c
parentd5bc8a9882f3edead01b48f8f7127cd198c8710d (diff)
downloadgdb-fc60cea0175a5d47b10eb619d74beba252c2e540.tar.gz
* coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
* dbxread.c (elfstab_build_psymtabs): Don't call install_minimal_symbols. (stabsect_build_psymtabs): Likewise. * elfread.c (elf_symfile_read): Call install_minimal_symbols earlier. * somread.c (som_symfile_read): Call install_minimal_symbols and do_cleanups earlier. * nlmread.c (nlm_symfile_read): Likewise. * mdebugread.c (elfmdebug_build_psymtabs): Call install_minimal_symbols and make appropriate cleanups.
Diffstat (limited to 'gdb/nlmread.c')
-rw-r--r--gdb/nlmread.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/nlmread.c b/gdb/nlmread.c
index 089c0f7dfb5..10af4c5c88c 100644
--- a/gdb/nlmread.c
+++ b/gdb/nlmread.c
@@ -191,6 +191,12 @@ nlm_symfile_read (struct objfile *objfile, int mainline)
nlm_symtab_read (abfd, offset, objfile);
+ /* Install any minimal symbols that have been collected as the current
+ minimal symbols for this objfile. */
+
+ install_minimal_symbols (objfile);
+ do_cleanups (back_to);
+
stabsect_build_psymtabs (objfile, mainline, ".stab",
".stabstr", ".text");
@@ -205,13 +211,6 @@ nlm_symfile_read (struct objfile *objfile, int mainline)
/* FIXME: We could locate and read the optional native debugging format
here and add the symbols to the minimal symbol table. */
-
- /* Install any minimal symbols that have been collected as the current
- minimal symbols for this objfile. */
-
- install_minimal_symbols (objfile);
-
- do_cleanups (back_to);
}