aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-10-24 14:28:02 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-10-24 14:28:02 +0000
commita7a0b6a5bef4487f8a926ba67bc4c5662a793286 (patch)
treeb69db60e0a5d84a44e42d50f7060b4bf2da7f60f /binutils
parente21ffe51c946b8311385340e5a97cba56231cd89 (diff)
downloadgdb-a7a0b6a5bef4487f8a926ba67bc4c5662a793286.zip
gdb-a7a0b6a5bef4487f8a926ba67bc4c5662a793286.tar.gz
gdb-a7a0b6a5bef4487f8a926ba67bc4c5662a793286.tar.bz2
binutils/
* dwarf.c (read_and_display_attr_value) <DW_AT_import>: Add CU_OFFSET also for DW_FORM_ref_udata.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 46e6a01..30ef0b2 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf.c (read_and_display_attr_value) <DW_AT_import>: Add CU_OFFSET
+ also for DW_FORM_ref_udata.
+
2011-10-24 Nick Clifton <nickc@redhat.com>
* po/ja.po: Updated Japanese translation.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 9d874ca..d89a861 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -1769,7 +1769,8 @@ read_and_display_attr_value (unsigned long attribute,
if (form == DW_FORM_ref1
|| form == DW_FORM_ref2
- || form == DW_FORM_ref4)
+ || form == DW_FORM_ref4
+ || form == DW_FORM_ref_udata)
uvalue += cu_offset;
if (uvalue >= section->size)