diff options
author | Alan Modra <amodra@gmail.com> | 2012-05-17 10:00:37 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-05-17 10:00:37 +0000 |
commit | 7282333f3d1bab51b3c1d35a65d05aeb261e20a7 (patch) | |
tree | 4fc5bd4698837076be2495781cddde021da50f8a /binutils/dwarf.c | |
parent | a2ff7a4bb45f6c1be62554c82ff9d688f056b876 (diff) | |
download | gdb-7282333f3d1bab51b3c1d35a65d05aeb261e20a7.zip gdb-7282333f3d1bab51b3c1d35a65d05aeb261e20a7.tar.gz gdb-7282333f3d1bab51b3c1d35a65d05aeb261e20a7.tar.bz2 |
binutils/
* dwarf.c (process_debug_info): Display abbrev offset in hex.
(display_debug_abbrev): Show offset of abbrev.
binutils/testsuite/
* binutils-all/objdump.W: Update.
* binutils-all/readelf.wa: Update.
* binutils-all/i386/compressed-1a.d: Update.
* binutils-all/x86-64/compressed-1a.d: Update.
gas/testsuite/
* gas/elf/dwarf2-1.d: Update.
* gas/elf/dwarf2-2.d: Update.
* gas/i386/dw2-compress-1.d: Update.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 54c94bc..072a1a7 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -2061,8 +2061,8 @@ process_debug_info (struct dwarf_section *section, dwarf_vmatoa ("x", compunit.cu_length), 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)); + printf (_(" Abbrev Offset: 0x%s\n"), + dwarf_vmatoa ("x", compunit.cu_abbrev_offset)); printf (_(" Pointer Size: %d\n"), compunit.cu_pointer_size); if (do_types) { @@ -3681,14 +3681,17 @@ display_debug_abbrev (struct dwarf_section *section, do { + unsigned char *last; + free_abbrevs (); + last = start; start = process_abbrev_section (start, end); if (first_abbrev == NULL) continue; - printf (_(" Number TAG\n")); + printf (_(" Number TAG (0x%lx)\n"), (long) (last - section->start)); for (entry = first_abbrev; entry; entry = entry->next) { |