* dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
authorDaniel Jacobowitz <drow@false.org>
Tue, 9 Mar 2004 16:57:44 +0000 (16:57 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 9 Mar 2004 16:57:44 +0000 (16:57 +0000)
commitf3dd693351c8ccd8e87a64070e19b0a4213729e4
treeaa47b8891b7017eabcfeb0c8030a2614788b44dc
parentb40c7d58b14bfe62f9466c4a15f1f587708b0c07
* 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