Add dwz.c and dwz_file::read_string
authorTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:08 +0000 (09:28 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:09 +0000 (09:28 -0600)
commit0314b3901c9cdc21ef9f0c1b0b88528d6f8d3073
tree510d3db9bc12b6ecdfa9128deb1256587ef6d813
parent9fda78b61127cbcf718104b7e5a78cf137c07836
Add dwz.c and dwz_file::read_string

This changes read_indirect_string_from_dwz to be a method on the
dwz_file, and adds a new dwarf2/dwz.c file.

gdb/ChangeLog
2020-03-26  Tom Tromey  <tom@tromey.com>

* dwarf2/read.c (read_attribute_value): Update.
(read_indirect_string_from_dwz): Move to dwz.c; change into
method.
(dwarf_decode_macro_bytes): Update.
* dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
* dwarf2/dwz.c: New file.
* Makefile.in (COMMON_SFILES): Add dwz.c.
gdb/ChangeLog
gdb/Makefile.in
gdb/dwarf2/dwz.c [new file with mode: 0644]
gdb/dwarf2/dwz.h
gdb/dwarf2/read.c