* dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
authorDoug Evans <dje@google.com>
Fri, 29 Jun 2012 00:06:18 +0000 (00:06 +0000)
committerDoug Evans <dje@google.com>
Fri, 29 Jun 2012 00:06:18 +0000 (00:06 +0000)
commit433df2d4d071b2cb42c7ebd15a81b19f046ca0af
tree633dba17a1513d0f803063893ca69ab63dd23c0c
parentbd2e36c1da2a1c60ccfb2c2794c85c898abfa22e
* dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
(struct abbrev_table): Define.
(dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
abbrev_table.
(init_cutu_and_read_dies): Update.
(abbrev_table_alloc_abbrev): New function.  Replaces
dwarf_alloc_abbrev.  All callers updated.
(abbrev_table_add_abbrev): New function.
(abbrev_table_lookup_abbrev): New function.  Replaces
dwarf2_lookup_abbrev.  All callers updated.
(abbrev_table_read_table): New function.  Contents moved here from
dwarf2_read_abbrevs.
(dwarf2_read_abbrevs): Call it.
(abbrev_table_free): New function.
(dwarf2_free_abbrev_table): Call it.
gdb/ChangeLog
gdb/dwarf2read.c