summaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-20 17:23:40 -0600
committerTom Tromey <tom@tromey.com>2021-03-20 17:23:44 -0600
commitb29b98cf8411ac136d17fc68236fc029447f1461 (patch)
tree4c2341c4eb59d32a07ed5c31a24d33832c153f4a /gdb/objfiles.c
parent17d66340ebb4528307c6c5d08383859aab785db7 (diff)
downloadbinutils-gdb-b29b98cf8411ac136d17fc68236fc029447f1461.tar.gz
Rearrange psymtab_storage construction
This changes objfile so that it doesn't construct a psymtab_storage object until the psymtab functions are installed. It also applies a similar treatment to reread_symbols. gdb/ChangeLog 2021-03-20 Tom Tromey <tom@tromey.com> * symfile.c (syms_from_objfile_1): Call reset_psymtabs. (reread_symbols): Move reset_psymtabs call later. * objfiles.c (objfile::objfile): Don't initialize partial_symtabs.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index bfa5f0443e3..ca135dd63c3 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -323,7 +323,6 @@ build_objfile_section_table (struct objfile *objfile)
objfile::objfile (bfd *abfd, const char *name, objfile_flags flags_)
: flags (flags_),
pspace (current_program_space),
- partial_symtabs (new psymtab_storage ()),
obfd (abfd)
{
const char *expanded_name;