diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-04-07 13:53:43 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2018-04-07 13:53:43 -0400 |
commit | b76e467de35d6b107edff1d4b9de15fb7ebacbbd (patch) | |
tree | 494b19a1e3a644d8eeea7fceac9e94e3883e54ee /gdb/ChangeLog | |
parent | 12359b5e8f2a4034e1e4cd7f0b454fb03151df4c (diff) | |
download | gdb-b76e467de35d6b107edff1d4b9de15fb7ebacbbd.zip gdb-b76e467de35d6b107edff1d4b9de15fb7ebacbbd.tar.gz gdb-b76e467de35d6b107edff1d4b9de15fb7ebacbbd.tar.bz2 |
Make dwarf2_per_objfile::all_comp_units an std::vector
Make all_comp_units an std::vector, remove n_comp_units and some manual
memory management.
gdb/ChangeLog:
* dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
Make an std::vector.
<n_comp_units>: Remove.
* dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
to std::vector change.
(dwarf2_per_objfile::get_cutu): Likewise.
(dwarf2_per_objfile::get_cu): Likewise.
(create_cus_from_index): Likewise.
(create_addrmap_from_index): Likewise.
(create_addrmap_from_aranges): Likewise.
(dwarf2_read_index): Likewise.
(dw2_find_last_source_symtab): Likewise.
(dw2_map_symtabs_matching_filename): Likewise.
(dw2_symtab_iter_next): Likewise.
(dw2_print_stats): Likewise.
(dw2_expand_all_symtabs): Likewise.
(dw2_expand_symtabs_with_fullname): Likewise.
(dw2_expand_marked_cus): Likewise.
(dw2_map_symbol_filenames): Likewise.
(create_cus_from_debug_names): Likewise.
(dwarf2_read_debug_names): Likewise.
(dw2_debug_names_iterator::next): Likewise.
(dwarf2_initialize_objfile): Likewise.
(set_partial_user): Likewise.
(dwarf2_build_psymtabs_hard): Likewise.
(read_comp_units_from_section): Remove arguments, adjust to
std::vector change.
(create_all_comp_units): Adjust to std::vector and
read_comp_units_from_section changes.
(dwarf2_find_containing_comp_unit): Adjust to std::vector
change.
* dwarf-index-write.c (check_dwarf64_offsets): Likewise.
(psyms_seen_size): Likewise.
(write_gdbindex): Likewise.
(write_debug_names): Likewise.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 434a2eb..03dae6a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,43 @@ 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. + Make an std::vector. + <n_comp_units>: Remove. + * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust + to std::vector change. + (dwarf2_per_objfile::get_cutu): Likewise. + (dwarf2_per_objfile::get_cu): Likewise. + (create_cus_from_index): Likewise. + (create_addrmap_from_index): Likewise. + (create_addrmap_from_aranges): Likewise. + (dwarf2_read_index): Likewise. + (dw2_find_last_source_symtab): Likewise. + (dw2_map_symtabs_matching_filename): Likewise. + (dw2_symtab_iter_next): Likewise. + (dw2_print_stats): Likewise. + (dw2_expand_all_symtabs): Likewise. + (dw2_expand_symtabs_with_fullname): Likewise. + (dw2_expand_marked_cus): Likewise. + (dw2_map_symbol_filenames): Likewise. + (create_cus_from_debug_names): Likewise. + (dwarf2_read_debug_names): Likewise. + (dw2_debug_names_iterator::next): Likewise. + (dwarf2_initialize_objfile): Likewise. + (set_partial_user): Likewise. + (dwarf2_build_psymtabs_hard): Likewise. + (read_comp_units_from_section): Remove arguments, adjust to + std::vector change. + (create_all_comp_units): Adjust to std::vector and + read_comp_units_from_section changes. + (dwarf2_find_containing_comp_unit): Adjust to std::vector + change. + * dwarf-index-write.c (check_dwarf64_offsets): Likewise. + (psyms_seen_size): Likewise. + (write_gdbindex): Likewise. + (write_debug_names): Likewise. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + * dwarf2read.c (create_cus_from_index_list): Replace objfile arg with dwarf2_per_objfile. (create_cus_from_index): Likewise. |