Change dwarf2_cu::method_info to be a std::vector
authorTom Tromey <tom@tromey.com>
Sat, 6 Jan 2018 00:26:19 +0000 (17:26 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jan 2018 18:28:44 +0000 (11:28 -0700)
commitc89b44cdc52b6a9c0848a795689895e292ad1f46
treeefdf3654699e4985da5832f116d857d276ef80fa
parentfcd3b13d80a2d0e5fc31ef6a245be62db6a11420
Change dwarf2_cu::method_info to be a std::vector

This changes the type of dwarf2_cu::method_info and fixes up the uses.
In order to remove cleanups from process_full_comp_unit and
process_full_type_unit, psymtab_include_file_name also had to be
changed to avoid leaving dangling cleanups.

2018-01-17  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (delayed_method_info): Remove typedef.
(dwarf2_cu::method_info): Now a std::vector.
(add_to_method_list): Update.
(free_delayed_list): Remove.
(compute_delayed_physnames): Update.
(process_full_comp_unit, process_full_type_unit): Clear the method
list.  Remove cleanups.
(psymtab_include_file_name): Add name_holder parameter.  Use
unique_xmalloc_ptr.
(dwarf_decode_lines): Update.
gdb/ChangeLog
gdb/dwarf2read.c