Remove objfile parameter from abbrev_table::read
authorTom Tromey <tom@tromey.com>
Fri, 6 Nov 2020 01:27:43 +0000 (18:27 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 6 Nov 2020 01:27:43 +0000 (18:27 -0700)
commit606decb27ef7a408bcd701b014af6a56080fe90a
treedebb826f4b2cd75591345b2eab0bfb73abdc782b
parent7ef63c9507e45db8c1dac4eed6a4ae21bf6489d9
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.
gdb/ChangeLog
gdb/dwarf2/abbrev.c
gdb/dwarf2/abbrev.h
gdb/dwarf2/read.c