summaryrefslogtreecommitdiffstats
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-10-12 17:00:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-10-12 17:00:31 +0000
commitf7643a939a5742751d062192229a37b27c2b17bf (patch)
tree705bdd1c570f8435cd454352106fb85fa0a7afd5 /binutils
parent5d8c3331a177d09c57dff5ca74600c29624c67e2 (diff)
downloadppe42-binutils-f7643a939a5742751d062192229a37b27c2b17bf.tar.gz
ppe42-binutils-f7643a939a5742751d062192229a37b27c2b17bf.zip
Pass offset_size to print_dwarf_vma for cie_id
binutils/ * dwarf.c (display_debug_frames): Pass offset_size to print_dwarf_vma for cie_id. binutils/testsuite/ * binutils-all/x86-64/compressed-1a.d: Updated for 64-bit addresses.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c4
-rw-r--r--binutils/testsuite/ChangeLog4
-rw-r--r--binutils/testsuite/binutils-all/x86-64/compressed-1a.d6
4 files changed, 14 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 7fe722a4ac..0e763d8d75 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * dwarf.c (display_debug_frames): Pass offset_size to
+ print_dwarf_vma for cie_id.
+
2013-10-11 Roland McGrath <mcgrathr@google.com>
* winduni.c (languages): Use \345 (octal syntax) rather than
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index afedf3e92a..ae50a65fbd 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -5280,7 +5280,7 @@ display_debug_frames (struct dwarf_section *section,
printf ("\n%08lx ", (unsigned long) (saved_start - section_start));
print_dwarf_vma (length, fc->ptr_size);
- print_dwarf_vma (cie_id, fc->ptr_size);
+ print_dwarf_vma (cie_id, offset_size);
if (do_debug_frames_interp)
{
@@ -5416,7 +5416,7 @@ display_debug_frames (struct dwarf_section *section,
printf ("\n%08lx %s %s FDE cie=%08lx pc=",
(unsigned long)(saved_start - section_start),
dwarf_vmatoa_1 (NULL, length, fc->ptr_size),
- dwarf_vmatoa_1 (NULL, cie_id, fc->ptr_size),
+ dwarf_vmatoa_1 (NULL, cie_id, offset_size),
(unsigned long)(cie->chunk_start - section_start));
if (fc->segment_size)
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index ac2de1f270..1ab6e86bf6 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * binutils-all/x86-64/compressed-1a.d: Updated for 64-bit addresses.
+
2013-09-12 Nick Clifton <nickc@redhat.com>
* binutils-all/x86-64/compressed-1a.d: Update expected output to
diff --git a/binutils/testsuite/binutils-all/x86-64/compressed-1a.d b/binutils/testsuite/binutils-all/x86-64/compressed-1a.d
index 0dfbdc1b04..f1e4bbcd88 100644
--- a/binutils/testsuite/binutils-all/x86-64/compressed-1a.d
+++ b/binutils/testsuite/binutils-all/x86-64/compressed-1a.d
@@ -135,7 +135,7 @@ Contents of the .[z]?debug_str section:
Contents of the .[z]?debug_frame section:
-00000000 00000014 ffffffff CIE
+00000000 0+014 ffffffff CIE
Version: 1
Augmentation: ""
Code alignment factor: 1
@@ -151,7 +151,7 @@ Contents of the .[z]?debug_frame section:
DW_CFA_nop
DW_CFA_nop
-00000018 00000014 00000000 FDE cie=00000000 pc=0+0000..0+0002
+00000018 0+014 00000000 FDE cie=00000000 pc=0+0000..0+0002
-00000030 00000014 00000000 FDE cie=00000000 pc=0+0010..0+0015
+00000030 0+014 00000000 FDE cie=00000000 pc=0+0010..0+0015
OpenPOWER on IntegriCloud