Remove some uses of DW_STRING_IS_CANONICAL
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)
commit3b64bf15bc96d83e49521048bfe3eacf25d3649d
treec42e458b20d687fcc1f9ae83c6da7df624266a79
parent2c830f547588220588f2a0a876b86e3f9062f9e1
Remove some uses of DW_STRING_IS_CANONICAL

This removes the rvalue uses of DW_STRING_IS_CANONICAL, replacing them
with an accessor method.

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

* dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
(dump_die_shallow): Use canonical_string_p.
* dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
method.
gdb/ChangeLog
gdb/dwarf2/attribute.h
gdb/dwarf2/read.c