aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-12-07 09:36:44 +0000
committerTristan Gingold <gingold@adacore.com>2009-12-07 09:36:44 +0000
commitde1d8fb992ae375f46792f3d8ef9aadfc5378773 (patch)
treeeca2adcf9aea95361ee512efbd751928ebdf3e6b /gdb/xcoffread.c
parente1c9c36ff623edd9db155891939e29a67141899b (diff)
downloadgdb-de1d8fb992ae375f46792f3d8ef9aadfc5378773.zip
gdb-de1d8fb992ae375f46792f3d8ef9aadfc5378773.tar.gz
gdb-de1d8fb992ae375f46792f3d8ef9aadfc5378773.tar.bz2
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/xcoffread.c')
-rw-r--r--gdb/xcoffread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index a93fbd2..35d8f1d 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -2948,9 +2948,7 @@ xcoff_initial_scan (struct objfile *objfile, int mainline)
perror_with_name (_("reading symbol table"));
/* 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))
+ if (objfile->global_psymbols.size == 0 && objfile->static_psymbols.size == 0)
/* I'm not sure how how good num_symbols is; the rule of thumb in
init_psymbol_list was developed for a.out. On the one hand,
num_symbols includes auxents. On the other hand, it doesn't