Add support for attributes using DW_FORM_GNU_strp_alt
authorNick Clifton <nickc@redhat.com>
Tue, 30 Jun 2020 12:05:18 +0000 (13:05 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 30 Jun 2020 12:05:18 +0000 (13:05 +0100)
* 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.

binutils/ChangeLog
binutils/dwarf.c

index 7a2855d7d3e35d194748f81bedaad3b72f580fbe..2c1ad92aab99f4c1cbb4d5dbac51a11d3e2dd5b6 100644 (file)
@@ -1,3 +1,9 @@
+2020-06-30  Nick Clifton  <nickc@redhat.com>
+
+       * 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  <amodra@gmail.com>
 
        * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
index 34903bcf7781ef99769581b7316ab5df03a373b6..b2dc6fbba7f0c92b110e2d2dc0ede4aeeb79b012 100644 (file)
@@ -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;