]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR binutils/2768
authorNick Clifton <nickc@redhat.com>
Tue, 8 Aug 2006 09:43:10 +0000 (09:43 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 8 Aug 2006 09:43:10 +0000 (09:43 +0000)
* dwarf.c (display_debug_aranges): When the address size is greater than 4
  display addresses and lengths as 16 hex digits, otherwise use 8 hex digits.

binutils/ChangeLog
binutils/dwarf.c

index 0db85794be4f8917db87a6eaa4bd4f0de5ab7714..101da4c5a9eb5ab3406b20ebc1934b1751930b41 100644 (file)
@@ -1,3 +1,10 @@
+2006-08-08  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/2768
+       * dwarf.c (display_debug_aranges): When the address size is
+       greater than 4 display addresses and lengths as 16 hex digits,
+       otherwise use 8 hex digits.
+
 2006-08-06  Nick Clifton  <nickc@redhat.com>
 
        PR binutils/3001
index 0db2a8b3d856ace325855e60a4672e3620cc6b8f..8a98aecb8f3da6d1876cf9d522726225fa916f79 100644 (file)
@@ -2577,7 +2577,10 @@ display_debug_aranges (struct dwarf_section *section,
          break;
        }
       
-      printf (_("\n    Address  Length\n"));
+      if (address_size > 4)
+       printf (_("\n    Address            Length\n"));
+      else
+       printf (_("\n    Address    Length\n"));
 
       ranges = hdrptr;
 
@@ -2598,7 +2601,10 @@ display_debug_aranges (struct dwarf_section *section,
 
          ranges += address_size;
 
-         printf ("    %8.8lx %lu\n", address, length);
+         if (address_size > 4)
+           printf ("    0x%16.16lx 0x%lx\n", address, length);
+         else
+           printf ("    0x%8.8lx 0x%lx\n", address, length);       
        }
     }