OSDN Git Service

* dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
authordrow <drow>
Tue, 9 Mar 2004 16:57:40 +0000 (16:57 +0000)
committerdrow <drow>
Tue, 9 Mar 2004 16:57:40 +0000 (16:57 +0000)
commitc04c76433decc610f70655183df3670ca0bbaaf7
treea99dad26efd6d027ee4ee094b8b72b2df615abc0
parent5f407adba41a1dfd5b60f19e6d869bb25eca1557
* dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
(struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
pointer.  Update comment about comp_unit_head.
(struct abbrev_info): Shorten two int flags.
(dwarf_alloc_abbrev): Take a CU argument.
(dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
each time through the loop.  Update cleanup argument.
(psymtab_to_symtab_1): Update cleanup call.
(dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
abbrev_obstack.
(dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
Just call obstack_free and clear the pointer.
gdb/ChangeLog
gdb/dwarf2read.c