]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Convert read_offset to method on comp_unit_head
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:43:24 +0000 (13:43 -0700)
commit8266302dc32a88c9e05b4e451e3c2c1516603132
tree11332dff1c23623a3de7431ec7b1282bdb0772bb
parent4057dfde49d7867ad41906ed11705e450a08b4cf
Convert read_offset to method on comp_unit_head

This changes one of the read_offset overloads to be a method on
comp_unit_head.

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

* dwarf2/read.c (read_attribute_value, read_indirect_string)
(read_indirect_line_string): Update.
* dwarf2/comp-unit.c (read_offset): Remove.
(read_comp_unit_head): Update.
* dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
method.
(read_offset): Don't declare.

Change-Id: Ia595702a5748337b7c031352bc437956baab9990
gdb/ChangeLog
gdb/dwarf2/comp-unit.c
gdb/dwarf2/comp-unit.h
gdb/dwarf2/read.c