Remove a VEC from dwarf2read.c
This removes a VEC from dwarf2read.c, replacing it with a std::vector. Tested by the buildbot. gdb/ChangeLog 2018-06-09 Tom Tromey <tom@tromey.com> * dwarf2read.c (process_cu_includes): Update. (process_full_comp_unit): Update. * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a std::vector.
This commit is contained in:
parent
d68033ea86
commit
c5d0225d25
|
@ -1,3 +1,10 @@
|
||||||
|
2018-06-09 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (process_cu_includes): Update.
|
||||||
|
(process_full_comp_unit): Update.
|
||||||
|
* dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
|
||||||
|
std::vector.
|
||||||
|
|
||||||
2018-06-08 Paul Koning <paul_koning@dell.com>
|
2018-06-08 Paul Koning <paul_koning@dell.com>
|
||||||
|
|
||||||
PR gdb/23252
|
PR gdb/23252
|
||||||
|
|
|
@ -10217,19 +10217,13 @@ compute_compunit_symtab_includes (struct dwarf2_per_cu_data *per_cu)
|
||||||
static void
|
static void
|
||||||
process_cu_includes (struct dwarf2_per_objfile *dwarf2_per_objfile)
|
process_cu_includes (struct dwarf2_per_objfile *dwarf2_per_objfile)
|
||||||
{
|
{
|
||||||
int ix;
|
for (struct dwarf2_per_cu_data *iter : dwarf2_per_objfile->just_read_cus)
|
||||||
struct dwarf2_per_cu_data *iter;
|
|
||||||
|
|
||||||
for (ix = 0;
|
|
||||||
VEC_iterate (dwarf2_per_cu_ptr, dwarf2_per_objfile->just_read_cus,
|
|
||||||
ix, iter);
|
|
||||||
++ix)
|
|
||||||
{
|
{
|
||||||
if (! iter->is_debug_types)
|
if (! iter->is_debug_types)
|
||||||
compute_compunit_symtab_includes (iter);
|
compute_compunit_symtab_includes (iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
VEC_free (dwarf2_per_cu_ptr, dwarf2_per_objfile->just_read_cus);
|
dwarf2_per_objfile->just_read_cus.clear ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generate full symbol information for PER_CU, whose DIEs have
|
/* Generate full symbol information for PER_CU, whose DIEs have
|
||||||
|
@ -10337,7 +10331,7 @@ process_full_comp_unit (struct dwarf2_per_cu_data *per_cu,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Push it for inclusion processing later. */
|
/* Push it for inclusion processing later. */
|
||||||
VEC_safe_push (dwarf2_per_cu_ptr, dwarf2_per_objfile->just_read_cus, per_cu);
|
dwarf2_per_objfile->just_read_cus.push_back (per_cu);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generate full symbol information for type unit PER_CU, whose DIEs have
|
/* Generate full symbol information for type unit PER_CU, whose DIEs have
|
||||||
|
|
|
@ -233,7 +233,7 @@ public:
|
||||||
htab_t die_type_hash {};
|
htab_t die_type_hash {};
|
||||||
|
|
||||||
/* The CUs we recently read. */
|
/* The CUs we recently read. */
|
||||||
VEC (dwarf2_per_cu_ptr) *just_read_cus = NULL;
|
std::vector<dwarf2_per_cu_data *> just_read_cus;
|
||||||
|
|
||||||
/* Table containing line_header indexed by offset and offset_in_dwz. */
|
/* Table containing line_header indexed by offset and offset_in_dwz. */
|
||||||
htab_t line_header_hash {};
|
htab_t line_header_hash {};
|
||||||
|
|
Loading…
Reference in New Issue