diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2019-06-21 14:10:15 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2019-06-21 14:11:15 -0400 |
commit | fd5866f6aad7336f7a2b59578b9deef81383ea3b (patch) | |
tree | 85fac8222aea10cc9f43ae15fc25e885014476e1 /gdb/dwarf2read.h | |
parent | fb1eb2f94a62813ab3daa34da59c035717ffb9da (diff) | |
download | gdb-fd5866f6aad7336f7a2b59578b9deef81383ea3b.zip gdb-fd5866f6aad7336f7a2b59578b9deef81383ea3b.tar.gz gdb-fd5866f6aad7336f7a2b59578b9deef81383ea3b.tar.bz2 |
dwarf2read: Get rid of VEC (dwarf2_section_info_def)
This patch removes uses of VEC (dwarf2_section_info_def) in favor of
std::vector<dwarf2_section_info>. The conversion is relatively
straightforward, no function changes are intended.
gdb/ChangeLog:
* dwarf2read.h (dwarf2_section_info_def): Remove.
(DEF_VEC_O (dwarf2_section_info_def)): Remove.
* dwarf2read.c (struct dwo_sections) <types>: Change type to
std::vector<dwarf2_section_info>.
(struct dwo_file) <~dwo_file>: Remove.
(dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
types field.
(dwarf2_per_objfile::locate_sections): Adjust to std::vector.
(dwarf2_read_debug_names): Likewise.
(create_debug_types_hash_table): Change parameter type to
array_view, adjust code accordingly.
(dwarf2_locate_dwo_sections): Adjust to std::vector.
(partial_die_info::fixup): Likewise.
(determine_prefix): Likewise.
* dwarf-index-write.c (write_psymtabs_to_index): Adjust.
Diffstat (limited to 'gdb/dwarf2read.h')
-rw-r--r-- | gdb/dwarf2read.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/dwarf2read.h b/gdb/dwarf2read.h index 4a1cd9c..9251bde 100644 --- a/gdb/dwarf2read.h +++ b/gdb/dwarf2read.h @@ -73,9 +73,6 @@ struct dwarf2_section_info bool is_virtual; }; -typedef struct dwarf2_section_info dwarf2_section_info_def; -DEF_VEC_O (dwarf2_section_info_def); - /* Read the contents of the section INFO. OBJFILE is the main object file, but not necessarily the file where the section comes from. E.g., for DWO files the bfd of INFO is the bfd @@ -167,7 +164,7 @@ public: dwarf2_section_info debug_names {}; dwarf2_section_info debug_aranges {}; - VEC (dwarf2_section_info_def) *types = NULL; + std::vector<dwarf2_section_info> types; /* Back link. */ struct objfile *objfile = NULL; |