Rearrange psymtab_storage construction
authorTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:40 +0000 (17:23 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:44 +0000 (17:23 -0600)
commitb29b98cf8411ac136d17fc68236fc029447f1461
tree4c2341c4eb59d32a07ed5c31a24d33832c153f4a
parent17d66340ebb4528307c6c5d08383859aab785db7
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.
gdb/ChangeLog
gdb/objfiles.c
gdb/symfile.c