aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-06-30 13:05:18 +0100
committerNick Clifton <nickc@redhat.com>2020-06-30 13:05:18 +0100
commit5568cc9ee83148042b853131a33007a9f36ab1eb (patch)
treec4e33f218ff3c51d1b3dddd9bb23fe1ba6a67dc2 /binutils/dwarf.c
parentb011fe1a7242f242699f9e74798e5ffbc7973c6e (diff)
downloadgdb-5568cc9ee83148042b853131a33007a9f36ab1eb.zip
gdb-5568cc9ee83148042b853131a33007a9f36ab1eb.tar.gz
gdb-5568cc9ee83148042b853131a33007a9f36ab1eb.tar.bz2
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.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 34903bc..b2dc6fb 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;