diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-02-20 18:31:14 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-02-20 18:31:14 +0000 |
commit | 7134143f534f02e8a283bb1fc0a9f22300c90e8d (patch) | |
tree | 7df28797a4403c1f540ca84d0a1d3214ab06058e /gdb/dbxread.c | |
parent | cf466558d0faa40bd6cc78b7f4e983c5a3ec883b (diff) | |
download | gdb-7134143f534f02e8a283bb1fc0a9f22300c90e8d.zip gdb-7134143f534f02e8a283bb1fc0a9f22300c90e8d.tar.gz gdb-7134143f534f02e8a283bb1fc0a9f22300c90e8d.tar.bz2 |
* 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/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 4d9f35d..6c90f14 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -3556,7 +3556,6 @@ elfstab_build_psymtabs (struct objfile *objfile, int mainline, buildsym_new_init (); free_header_files (); init_header_files (); - install_minimal_symbols (objfile); processing_acc_compilation = 1; @@ -3568,7 +3567,10 @@ elfstab_build_psymtabs (struct objfile *objfile, int mainline, /* In an elf file, we've already installed the minimal symbols that came from the elf (non-stab) symbol table, so always act like an - incremental load here. */ + incremental load here. dbx_symfile_read should not generate any new + minimal symbols, since we will have already read the ELF dynamic symbol + table and normal symbol entries won't be in the ".stab" section; but in + case it does, it will install them itself. */ dbx_symfile_read (objfile, 0); if (back_to) @@ -3650,7 +3652,6 @@ stabsect_build_psymtabs (struct objfile *objfile, int mainline, char *stab_name, buildsym_new_init (); free_header_files (); init_header_files (); - install_minimal_symbols (objfile); /* Now, do an incremental load */ |