diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-04-07 13:53:44 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2018-04-07 13:53:44 -0400 |
commit | b2bdb8cf395f491319264cda42e41538f55a86d9 (patch) | |
tree | 6e262715aa03f2e35103a8b690baf3cf522c35b2 /gdb/ChangeLog | |
parent | b76e467de35d6b107edff1d4b9de15fb7ebacbbd (diff) | |
download | gdb-b2bdb8cf395f491319264cda42e41538f55a86d9.zip gdb-b2bdb8cf395f491319264cda42e41538f55a86d9.tar.gz gdb-b2bdb8cf395f491319264cda42e41538f55a86d9.tar.bz2 |
Make dwarf2_per_objfile::all_type_units an std::vector
Make all_type_units an std::vector, remove
n_type_units/n_allocated_type_units and some manual memory management.
gdb/ChangeLog:
* dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
Remove.
<n_allocated_type_units>: Remove.
<all_type_units>: Change to std::vector.
* dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
to std::vector change.
(dwarf2_per_objfile::get_cutu): Likewise.
(dwarf2_per_objfile::get_tu): Likewise.
(create_signatured_type_table_from_index): Likewise.
(create_signatured_type_table_from_debug_names): Likewise.
(dw2_symtab_iter_next): Likewise.
(dw2_print_stats): Likewise.
(dw2_expand_all_symtabs): Likewise.
(dw2_expand_marked_cus): Likewise.
(dw2_debug_names_iterator::next): Likewise.
(dwarf2_initialize_objfile): Likewise.
(add_signatured_type_cu_to_table): Likewise.
(create_all_type_units): Likewise.
(add_type_unit): Likewise.
(struct tu_abbrev_offset): Add constructor.
(build_type_psymtabs_1): Adjust to std::vector change.
(print_tu_stats): Likewise.
* dwarf-index-write.c (check_dwarf64_offsets): Likewise.
(write_debug_names): Likewise.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 03dae6a..9c7cc14 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,32 @@ 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: + Remove. + <n_allocated_type_units>: Remove. + <all_type_units>: Change to std::vector. + * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust + to std::vector change. + (dwarf2_per_objfile::get_cutu): Likewise. + (dwarf2_per_objfile::get_tu): Likewise. + (create_signatured_type_table_from_index): Likewise. + (create_signatured_type_table_from_debug_names): Likewise. + (dw2_symtab_iter_next): Likewise. + (dw2_print_stats): Likewise. + (dw2_expand_all_symtabs): Likewise. + (dw2_expand_marked_cus): Likewise. + (dw2_debug_names_iterator::next): Likewise. + (dwarf2_initialize_objfile): Likewise. + (add_signatured_type_cu_to_table): Likewise. + (create_all_type_units): Likewise. + (add_type_unit): Likewise. + (struct tu_abbrev_offset): Add constructor. + (build_type_psymtabs_1): Adjust to std::vector change. + (print_tu_stats): Likewise. + * dwarf-index-write.c (check_dwarf64_offsets): Likewise. + (write_debug_names): Likewise. + +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. |