diff options
author | Nick Clifton <nickc@redhat.com> | 2006-08-08 09:43:10 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-08-08 09:43:10 +0000 |
commit | 209c9a1352c5a1d1b27b7d61883055fa60de6457 (patch) | |
tree | 9c626e851e1c305e9ac5932de25d9af8ebf2215a /binutils | |
parent | 802f5d9e8e94c7886c581e0d9915bcd0dde8042c (diff) | |
download | gdb-209c9a1352c5a1d1b27b7d61883055fa60de6457.zip gdb-209c9a1352c5a1d1b27b7d61883055fa60de6457.tar.gz gdb-209c9a1352c5a1d1b27b7d61883055fa60de6457.tar.bz2 |
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.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 7 | ||||
-rw-r--r-- | binutils/dwarf.c | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 0db8579..101da4c 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -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 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 0db2a8b..8a98aecb 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -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); } } |