summaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-12-07 09:36:40 +0000
committerTristan Gingold <gingold@adacore.com>2009-12-07 09:36:40 +0000
commit8890fd718efa3320c54f4c93403922a5e68a773e (patch)
tree69e5a3b943dbff12d59c79485e56bd7bddea7b56 /gdb/dbxread.c
parent88004baa6fc2128b4b7a7af1156f3da18fe1b5eb (diff)
downloadgdb-8890fd718efa3320c54f4c93403922a5e68a773e.tar.gz
2009-12-07 Tristan Gingold <gingold@adacore.com>
* dbxread.c (dbx_symfile_read): No need to test mainline to call init_psymbol_list. * xcoffread.c (xcoff_initial_scan): Ditto; * coffread.c (coff_symfile_read): Remove call to init_psymbol_list. * elfread.c (elf_symfile_read): Ditto. * machoread.c (macho_symfile_read): Ditto.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 771483a85bf..a1bd8e0bb13 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -556,10 +556,8 @@ dbx_symfile_read (struct objfile *objfile, int mainline)
if (val < 0)
perror_with_name (objfile->name);
- /* If we are reinitializing, or if we have never loaded syms yet, init */
- if (mainline
- || (objfile->global_psymbols.size == 0
- && objfile->static_psymbols.size == 0))
+ /* Size the symbol table. */
+ if (objfile->global_psymbols.size == 0 && objfile->static_psymbols.size == 0)
init_psymbol_list (objfile, DBX_SYMCOUNT (objfile));
symbol_size = DBX_SYMBOL_SIZE (objfile);