diff options
author | Tom Tromey <tom@tromey.com> | 2020-11-05 18:27:43 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-11-05 18:27:43 -0700 |
commit | 606decb27ef7a408bcd701b014af6a56080fe90a (patch) | |
tree | debb826f4b2cd75591345b2eab0bfb73abdc782b /gdb/dwarf2/abbrev.h | |
parent | 7ef63c9507e45db8c1dac4eed6a4ae21bf6489d9 (diff) | |
download | gdb-606decb27ef7a408bcd701b014af6a56080fe90a.zip gdb-606decb27ef7a408bcd701b014af6a56080fe90a.tar.gz gdb-606decb27ef7a408bcd701b014af6a56080fe90a.tar.bz2 |
Remove objfile parameter from abbrev_table::read
In a longer series that I am working on, I needed to remove the
objfile parameter from abbrev_table::read. It seemed to me that this
was a simple and relatively harmless patch, so I'm sending it now.
gdb/ChangeLog
2020-11-05 Tom Tromey <tom@tromey.com>
* dwarf2/read.c (read_cutu_die_from_dwo)
(cutu_reader::cutu_reader, cutu_reader::cutu_reader)
(build_type_psymtabs_1): Update.
* dwarf2/abbrev.h (struct abbrev_table): Remove objfile
parameter.
* dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
Don't read section. Add assert.
Diffstat (limited to 'gdb/dwarf2/abbrev.h')
-rw-r--r-- | gdb/dwarf2/abbrev.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/dwarf2/abbrev.h b/gdb/dwarf2/abbrev.h index 888f04e..d52d00b 100644 --- a/gdb/dwarf2/abbrev.h +++ b/gdb/dwarf2/abbrev.h @@ -55,8 +55,11 @@ typedef std::unique_ptr<struct abbrev_table> abbrev_table_up; struct abbrev_table { - static abbrev_table_up read (struct objfile *objfile, - struct dwarf2_section_info *section, + /* Read an abbrev table from the indicated section, at the given + offset. The caller is responsible for ensuring that the section + has already been read. */ + + static abbrev_table_up read (struct dwarf2_section_info *section, sect_offset sect_off); /* Look up an abbrev in the table. |