Change some uses of DW_STRING to string method
authorTom Tromey <tom@tromey.com>
Wed, 30 Sep 2020 00:49:08 +0000 (18:49 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 30 Sep 2020 02:29:06 +0000 (20:29 -0600)
commit2c830f547588220588f2a0a876b86e3f9062f9e1
tree66da4ee30bf5e021ce49b3825afe59007351255e
parent6c412691f9a2c9adaa3fdd057dcad6dcd68f13ec
Change some uses of DW_STRING to string method

This changes some of the simpler spots to use attribute::string rather
than DW_STRING.

gdb/ChangeLog
2020-09-29  Tom Tromey  <tom@tromey.com>

* dwarf2/read.c (partial_die_info::read)
(dwarf2_const_value_attr, anonymous_struct_prefix, )
(dwarf2_name, dwarf2_fetch_constant_bytes): Use
attribute::as_string.
gdb/ChangeLog
gdb/dwarf2/read.c