From: Nick Clifton Date: Fri, 25 Mar 2011 17:54:57 +0000 (+0000) Subject: * dwarf.c (process_debug_info): Use offset_size to determine X-Git-Tag: cgen-snapshot-20110401~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49e7b350197b0b63e4996247872da3bc86a2dc16;p=external%2Fbinutils.git * dwarf.c (process_debug_info): Use offset_size to determine the bit-size of the computation unit's offset. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1497663..3565cf1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2011-03-25 Pierre Muller + + * dwarf.c (process_debug_info): Use offset_size to determine + the bit-size of the computation unit's offset. + 2011-03-25 Michael Snyder * strings.c (print_strings): Plug memory leak. diff --git a/binutils/dwarf.c b/binutils/dwarf.c index d204537..102d164 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));