Create dwarf2/abbrev.[ch]
authorTom Tromey <tom@tromey.com>
Sat, 8 Feb 2020 20:40:54 +0000 (13:40 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 8 Feb 2020 20:40:55 +0000 (13:40 -0700)
commit3054dd54700066c423fe73731ab46ea2a9c3f541
tree2886ae5e6f935730da5f3b5acc6210b56a41aa3a
parent96b792931fe4dd30f42eecd711ad5e44b6b135a3
Create dwarf2/abbrev.[ch]

This moves the abbrev table code out of dwarf2read.c and into new
files dwarf2/abbrev.[ch].

gdb/ChangeLog
2020-02-08  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (abbrev_table_up, struct abbrev_info)
(struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
Move.
(read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
(abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
(abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
abbrev.c.
* dwarf2/abbrev.h: New file.
* dwarf2/abbrev.c: New file, from dwarf2read.c.
* Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.

Change-Id: I87911bc5297de4407587ca849fef8e8d19136c30
gdb/ChangeLog
gdb/Makefile.in
gdb/dwarf2/abbrev.c [new file with mode: 0644]
gdb/dwarf2/abbrev.h [new file with mode: 0644]
gdb/dwarf2read.c