diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 28e34fba04f..cd5958ccc44 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2020-09-29 Tom Tromey + + * dwarf2/read.c (partial_die_info::read) : Use value_as_string. + (dwarf2_string_attr): Use value_as_string. + * dwarf2/attribute.h (struct attribute) : Declare + method. + * dwarf2/attribute.c (attribute::value_as_string): New method. + 2020-09-29 Pedro Alves * unittests/enum-flags-selftests.c: Check whether __GNUC__ is diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 977bdb85689..3a2a918f4ed 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -19031,11 +19031,6 @@ partial_die_info::read (const struct die_reader_specs *reader, assume they will be the same, and we only store the last one we see. */ linkage_name = attr.value_as_string (); - /* rustc emits invalid values for DW_AT_linkage_name. Ignore these. - See https://github.com/rust-lang/rust/issues/32925. */ - if (cu->language == language_rust && linkage_name != NULL - && strchr (linkage_name, '{') != NULL) - linkage_name = NULL; break; case DW_AT_low_pc: has_low_pc_attr = 1;