aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-09-29 18:49:08 -0600
committerTom Tromey <tom@tromey.com>2020-09-29 20:29:06 -0600
commitf800b00e51f81a3ccbc62f53eaa36e2996f33b9f (patch)
tree07b2b8e7062206edcea24cd2d519fb818715dd12 /Makefile.in
parent9dc318a3e5092796616f71adcfe8fdf28083dfc0 (diff)
downloadgdb-f800b00e51f81a3ccbc62f53eaa36e2996f33b9f.zip
gdb-f800b00e51f81a3ccbc62f53eaa36e2996f33b9f.tar.gz
gdb-f800b00e51f81a3ccbc62f53eaa36e2996f33b9f.tar.bz2
Add attribute::value_as_string method
The full DIE reader checks that an attribute has a "string" form in some spots, but the partial DIE reader does not. This patch brings the two readers in sync for one specific case, namely when examining the linkage name. This avoids regressions in an existing DWARF test case. A full fix for this problem would be preferable. An accessor like DW_STRING should always check the form. However, I haven't attempted that in this series. Also the fact that the partial and full readers can disagree like this is a design flaw. gdb/ChangeLog 2020-09-29 Tom Tromey <tom@tromey.com> * dwarf2/read.c (partial_die_info::read) <case DW_AT_linkage_name>: Use value_as_string. (dwarf2_string_attr): Use value_as_string. * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare method. * dwarf2/attribute.c (attribute::value_as_string): New method.
Diffstat (limited to 'Makefile.in')
0 files changed, 0 insertions, 0 deletions