aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.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/coffread.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/coffread.c')
-rw-r--r--gdb/coffread.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 84edfc5..1f71db2 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -607,15 +607,6 @@ coff_symfile_read (struct objfile *objfile, int mainline)
/* Free the installed minimal symbol data. */
do_cleanups (cleanup_minimal_symbols);
- /* If we are reinitializing, or if we have not loaded syms yet,
- empty the psymtab. "mainline" is cleared so the *_read_psymtab
- functions do not all re-initialize it. */
- if (mainline)
- {
- init_psymbol_list (objfile, 0);
- mainline = 0;
- }
-
bfd_map_over_sections (abfd, coff_locate_sections, (void *) info);
if (info->stabsects)