* dwarf.c (process_debug_info): Use offset_size to determine
authorNick Clifton <nickc@redhat.com>
Fri, 25 Mar 2011 17:54:57 +0000 (17:54 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 25 Mar 2011 17:54:57 +0000 (17:54 +0000)
the bit-size of the computation unit's offset.

binutils/ChangeLog
binutils/dwarf.c

index 1497663219e7e284a6a5198ce8d560b6bf941e88..3565cf178113e6240b759dbd7119adb84e99a4ef 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * dwarf.c (process_debug_info): Use offset_size to determine
+       the bit-size of the computation unit's offset.
+
 2011-03-25  Michael Snyder  <msnyder@vmware.com>
 
        * strings.c (print_strings): Plug memory leak.
index d2045371e27495501023a0bcc10411b2ba44ad51..102d1642dcea769fef3550ebe53427cff81caa6f 100644 (file)
@@ -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));