aboutsummaryrefslogtreecommitdiff
path: root/gdb/machoread.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-12-02 11:44:35 +0000
committerTristan Gingold <gingold@adacore.com>2009-12-02 11:44:35 +0000
commitf29dff0a0940505506d27e54afbd750b8409846b (patch)
tree5173e101e9b96c9d61f96c35c4558c5300991883 /gdb/machoread.c
parentc67a9c901aa0c78a85229ffc837a97d2589a99f8 (diff)
downloadgdb-f29dff0a0940505506d27e54afbd750b8409846b.zip
gdb-f29dff0a0940505506d27e54afbd750b8409846b.tar.gz
gdb-f29dff0a0940505506d27e54afbd750b8409846b.tar.bz2
2009-12-02 Tristan Gingold <gingold@adacore.com>
* symfile.h (dwarf2_build_psymtabs): Remove mainline parameter in prototype. * dwarf2read.c (dwarf2_build_psymtabs): Remove mainline paramter in definition, simplify code assuming it is always 0. * coffread.c (coff_symfile_read): Adjust call. * elfread.c (elf_symfile_read): Ditto. * machoread.c (macho_symfile_read): Explicitely calls init_psymbol_list if mainline is set.
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r--gdb/machoread.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c
index ebd90c6..5e0a658 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -649,10 +649,15 @@ macho_symfile_read (struct objfile *objfile, int mainline)
}
}
+ /* If we are reinitializing, or if we have never loaded syms yet,
+ set table to empty. */
+ if (mainline)
+ init_psymbol_list (objfile, 0);
+
if (dwarf2_has_info (objfile))
{
/* DWARF 2 sections */
- dwarf2_build_psymtabs (objfile, mainline);
+ dwarf2_build_psymtabs (objfile);
}
/* Do not try to read .eh_frame/.debug_frame as they are not relocated