Set list_in_scope later in DWARF reader
authorTom Tromey <tom@tromey.com>
Tue, 22 May 2018 05:30:47 +0000 (23:30 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 20 Jul 2018 15:42:46 +0000 (09:42 -0600)
commit93b8bea4143cafae79076076c64aaa4c46a9b73c
treed4079f449410946158bf5e421bea21953e7bb24c
parentf62f6af5da07eba0ac5425365da3d82c43f3445c
Set list_in_scope later in DWARF reader

Currently the DWARF reader sets the list_in_scope member of the CU
when first starting to process symbols.  Future changes will make this
assert -- code will not be able to refer to these lists until after
start_symtab has been called.  This patch prepares for the problem by
arranging to initialize list_in_scope in dwarf2_start_symtab.

gdb/ChangeLog
2018-07-20  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
(process_full_type_unit): Likewise.
(dwarf2_start_symtab): Set list_in_scope.
gdb/ChangeLog
gdb/dwarf2read.c