summaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 0db2a8b3d85..8a98aecb8f3 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);
}
}