aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-09-10 16:19:08 +0000
committerNick Clifton <nickc@redhat.com>2013-09-10 16:19:08 +0000
commit846a11e4207a3365045d8482d4686d0dce5762f5 (patch)
treed37fa808baffef84f0d6995649d437f087956a12 /binutils/dwarf.c
parenteabdca0f8d9aed91fd92af8918d4bc40187228a8 (diff)
downloadgdb-846a11e4207a3365045d8482d4686d0dce5762f5.zip
gdb-846a11e4207a3365045d8482d4686d0dce5762f5.tar.gz
gdb-846a11e4207a3365045d8482d4686d0dce5762f5.tar.bz2
* dwarf.c (display_debug_frames): Check for DW64_CIE_ID when
parsing 64-bit frames.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 05bc483..00dad39 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -5188,7 +5188,8 @@ display_debug_frames (struct dwarf_section *section,
SAFE_BYTE_GET_AND_INC (cie_id, start, offset_size, end);
- if (is_eh ? (cie_id == 0) : (cie_id == DW_CIE_ID))
+ if (is_eh ? (cie_id == 0) : ((offset_size == 4 && cie_id == DW_CIE_ID)
+ || (offset_size == 8 && cie_id == DW64_CIE_ID)))
{
int version;