From: Nick Clifton Date: Tue, 30 Jun 2020 12:05:18 +0000 (+0100) Subject: Add support for attributes using DW_FORM_GNU_strp_alt X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5568cc9ee83148042b853131a33007a9f36ab1eb;p=binutils-gdb.git Add support for attributes using DW_FORM_GNU_strp_alt * dwarf.c (read_and_display_attr_value): Support DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and DW_AT_comp_dir. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7a2855d7d3e..2c1ad92aab9 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2020-06-30 Nick Clifton + + * dwarf.c (read_and_display_attr_value): Support + DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and + DW_AT_comp_dir. + 2020-06-30 Alan Modra * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 34903bcf778..b2dc6fbba7f 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -2574,6 +2574,9 @@ read_and_display_attr_value (unsigned long attribute, case DW_FORM_strp: add_dwo_name ((const char *) fetch_indirect_string (uvalue)); break; + case DW_FORM_GNU_strp_alt: + add_dwo_name ((const char *) fetch_alt_indirect_string (uvalue)); + break; case DW_FORM_GNU_str_index: add_dwo_name (fetch_indexed_string (uvalue, this_set, offset_size, FALSE)); break; @@ -2595,6 +2598,9 @@ read_and_display_attr_value (unsigned long attribute, case DW_FORM_strp: add_dwo_dir ((const char *) fetch_indirect_string (uvalue)); break; + case DW_FORM_GNU_strp_alt: + add_dwo_dir (fetch_alt_indirect_string (uvalue)); + break; case DW_FORM_line_strp: add_dwo_dir ((const char *) fetch_indirect_line_string (uvalue)); break;