summaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-03-25 17:54:56 +0000
committerNick Clifton <nickc@redhat.com>2011-03-25 17:54:56 +0000
commit58c72efca1eb4d6ce28ed34be51744ecfeee931b (patch)
tree7bbca7bae26071900b93b38f563efbdd896f9f93 /binutils/dwarf.c
parent9a3c6177d97bb21333517f6428e562401f77e73f (diff)
downloadbinutils-redhat-58c72efca1eb4d6ce28ed34be51744ecfeee931b.tar.gz
* dwarf.c (process_debug_info): Use offset_size to determine
the bit-size of the computation unit's offset.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index d2045371e2..102d1642dc 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -2072,7 +2072,7 @@ process_debug_info (struct dwarf_section *section,
dwarf_vmatoa ("x", cu_offset));
printf (_(" Length: 0x%s (%s)\n"),
dwarf_vmatoa ("x", compunit.cu_length),
- initial_length_size == 8 ? "64-bit" : "32-bit");
+ offset_size == 8 ? "64-bit" : "32-bit");
printf (_(" Version: %d\n"), compunit.cu_version);
printf (_(" Abbrev Offset: %s\n"),
dwarf_vmatoa ("d", compunit.cu_abbrev_offset));