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.
This commit is contained in:
parent
a2ff7a4bb4
commit
7282333f3d
|
@ -1,3 +1,8 @@
|
||||||
|
2012-05-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* dwarf.c (process_debug_info): Display abbrev offset in hex.
|
||||||
|
(display_debug_abbrev): Show offset of abbrev.
|
||||||
|
|
||||||
2012-05-17 Alan Modra <amodra@gmail.com>
|
2012-05-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* dwarf.c (display_debug_ranges): Don't report more than one use
|
* dwarf.c (display_debug_ranges): Don't report more than one use
|
||||||
|
|
|
@ -2061,8 +2061,8 @@ process_debug_info (struct dwarf_section *section,
|
||||||
dwarf_vmatoa ("x", compunit.cu_length),
|
dwarf_vmatoa ("x", compunit.cu_length),
|
||||||
offset_size == 8 ? "64-bit" : "32-bit");
|
offset_size == 8 ? "64-bit" : "32-bit");
|
||||||
printf (_(" Version: %d\n"), compunit.cu_version);
|
printf (_(" Version: %d\n"), compunit.cu_version);
|
||||||
printf (_(" Abbrev Offset: %s\n"),
|
printf (_(" Abbrev Offset: 0x%s\n"),
|
||||||
dwarf_vmatoa ("d", compunit.cu_abbrev_offset));
|
dwarf_vmatoa ("x", compunit.cu_abbrev_offset));
|
||||||
printf (_(" Pointer Size: %d\n"), compunit.cu_pointer_size);
|
printf (_(" Pointer Size: %d\n"), compunit.cu_pointer_size);
|
||||||
if (do_types)
|
if (do_types)
|
||||||
{
|
{
|
||||||
|
@ -3681,14 +3681,17 @@ display_debug_abbrev (struct dwarf_section *section,
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
unsigned char *last;
|
||||||
|
|
||||||
free_abbrevs ();
|
free_abbrevs ();
|
||||||
|
|
||||||
|
last = start;
|
||||||
start = process_abbrev_section (start, end);
|
start = process_abbrev_section (start, end);
|
||||||
|
|
||||||
if (first_abbrev == NULL)
|
if (first_abbrev == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
printf (_(" Number TAG\n"));
|
printf (_(" Number TAG (0x%lx)\n"), (long) (last - section->start));
|
||||||
|
|
||||||
for (entry = first_abbrev; entry; entry = entry->next)
|
for (entry = first_abbrev; entry; entry = entry->next)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2012-05-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2012-05-16 Meador Inge <meadori@codesourcery.com>
|
2012-05-16 Meador Inge <meadori@codesourcery.com>
|
||||||
|
|
||||||
* binutils-all/arm/objdump.exp:
|
* binutils-all/arm/objdump.exp:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
Contents of the .[z]?debug_abbrev section:
|
Contents of the .[z]?debug_abbrev section:
|
||||||
|
|
||||||
Number TAG
|
Number TAG \(0x0\)
|
||||||
1 DW_TAG_compile_unit \[has children\]
|
1 DW_TAG_compile_unit \[has children\]
|
||||||
DW_AT_producer DW_FORM_strp
|
DW_AT_producer DW_FORM_strp
|
||||||
DW_AT_language DW_FORM_data1
|
DW_AT_language DW_FORM_data1
|
||||||
|
@ -30,7 +30,7 @@ Contents of the .[z]?debug_info section:
|
||||||
Compilation Unit @ offset 0x0:
|
Compilation Unit @ offset 0x0:
|
||||||
Length: 0x46 \(32-bit\)
|
Length: 0x46 \(32-bit\)
|
||||||
Version: 3
|
Version: 3
|
||||||
Abbrev Offset: 0
|
Abbrev Offset: 0x0
|
||||||
Pointer Size: 4
|
Pointer Size: 4
|
||||||
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
||||||
<c> DW_AT_producer : \(indirect string, offset: 0x0\): GNU C 4.4.4
|
<c> DW_AT_producer : \(indirect string, offset: 0x0\): GNU C 4.4.4
|
||||||
|
|
|
@ -6,7 +6,7 @@ Contents of the .debug_info section:
|
||||||
Compilation Unit @ offset 0x0:
|
Compilation Unit @ offset 0x0:
|
||||||
Length: 0x4e \(32-bit\)
|
Length: 0x4e \(32-bit\)
|
||||||
Version: 2
|
Version: 2
|
||||||
Abbrev Offset: 0
|
Abbrev Offset: 0x0
|
||||||
Pointer Size: 4
|
Pointer Size: 4
|
||||||
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
||||||
<c> DW_AT_stmt_list : 0x0
|
<c> DW_AT_stmt_list : 0x0
|
||||||
|
@ -75,7 +75,7 @@ Raw dump of debug contents of section .debug_line:
|
||||||
|
|
||||||
Contents of the .debug_abbrev section:
|
Contents of the .debug_abbrev section:
|
||||||
|
|
||||||
Number TAG
|
Number TAG \(0x0\)
|
||||||
1 DW_TAG_compile_unit \[has children\]
|
1 DW_TAG_compile_unit \[has children\]
|
||||||
DW_AT_stmt_list DW_FORM_data4
|
DW_AT_stmt_list DW_FORM_data4
|
||||||
DW_AT_high_pc DW_FORM_addr
|
DW_AT_high_pc DW_FORM_addr
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Contents of the .zdebug_abbrev section:
|
Contents of the .zdebug_abbrev section:
|
||||||
|
|
||||||
Number TAG
|
Number TAG (0x0)
|
||||||
1 DW_TAG_compile_unit [has children]
|
1 DW_TAG_compile_unit [has children]
|
||||||
DW_AT_stmt_list DW_FORM_data4
|
DW_AT_stmt_list DW_FORM_data4
|
||||||
DW_AT_high_pc DW_FORM_addr
|
DW_AT_high_pc DW_FORM_addr
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
Contents of the .[z]?debug_abbrev section:
|
Contents of the .[z]?debug_abbrev section:
|
||||||
|
|
||||||
Number TAG
|
Number TAG \(0x0\)
|
||||||
1 DW_TAG_compile_unit \[has children\]
|
1 DW_TAG_compile_unit \[has children\]
|
||||||
DW_AT_producer DW_FORM_strp
|
DW_AT_producer DW_FORM_strp
|
||||||
DW_AT_language DW_FORM_data1
|
DW_AT_language DW_FORM_data1
|
||||||
|
@ -30,7 +30,7 @@ Contents of the .[z]?debug_info section:
|
||||||
Compilation Unit @ offset 0x0:
|
Compilation Unit @ offset 0x0:
|
||||||
Length: 0x5e \(32-bit\)
|
Length: 0x5e \(32-bit\)
|
||||||
Version: 3
|
Version: 3
|
||||||
Abbrev Offset: 0
|
Abbrev Offset: 0x0
|
||||||
Pointer Size: 8
|
Pointer Size: 8
|
||||||
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
||||||
<c> DW_AT_producer : \(indirect string, offset: 0x0\): GNU C 4.4.4
|
<c> DW_AT_producer : \(indirect string, offset: 0x0\): GNU C 4.4.4
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
2012-05-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* gas/elf/dwarf2-1.d: Update.
|
||||||
|
* gas/elf/dwarf2-2.d: Update.
|
||||||
|
* gas/i386/dw2-compress-1.d: Update.
|
||||||
|
|
||||||
2012-05-17 Alan Modra <amodra@gmail.com>
|
2012-05-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* gas/ppc/vle.d: Pass -a32 to assembler.
|
* gas/ppc/vle.d: Pass -a32 to assembler.
|
||||||
|
|
|
@ -8,7 +8,7 @@ Contents of the .[z]?debug_info section:
|
||||||
Compilation Unit @ offset 0x0:
|
Compilation Unit @ offset 0x0:
|
||||||
Length: 0x4e \(32-bit\)
|
Length: 0x4e \(32-bit\)
|
||||||
Version: 2
|
Version: 2
|
||||||
Abbrev Offset: 0
|
Abbrev Offset: 0x0
|
||||||
Pointer Size: 4
|
Pointer Size: 4
|
||||||
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
||||||
<c> DW_AT_stmt_list : 0x0
|
<c> DW_AT_stmt_list : 0x0
|
||||||
|
@ -77,7 +77,7 @@ Raw dump of debug contents of section .[z]?debug_line:
|
||||||
|
|
||||||
Contents of the .[z]?debug_abbrev section:
|
Contents of the .[z]?debug_abbrev section:
|
||||||
|
|
||||||
Number TAG
|
Number TAG \(0x0\)
|
||||||
1 DW_TAG_compile_unit \[has children\]
|
1 DW_TAG_compile_unit \[has children\]
|
||||||
DW_AT_stmt_list DW_FORM_data4
|
DW_AT_stmt_list DW_FORM_data4
|
||||||
DW_AT_high_pc DW_FORM_addr
|
DW_AT_high_pc DW_FORM_addr
|
||||||
|
|
|
@ -8,7 +8,7 @@ Contents of the .[z]?debug_info section:
|
||||||
Compilation Unit @ offset 0x0:
|
Compilation Unit @ offset 0x0:
|
||||||
Length: 0x4e \(32-bit\)
|
Length: 0x4e \(32-bit\)
|
||||||
Version: 2
|
Version: 2
|
||||||
Abbrev Offset: 0
|
Abbrev Offset: 0x0
|
||||||
Pointer Size: 4
|
Pointer Size: 4
|
||||||
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
||||||
<c> DW_AT_stmt_list : 0x0
|
<c> DW_AT_stmt_list : 0x0
|
||||||
|
@ -77,7 +77,7 @@ Raw dump of debug contents of section .[z]?debug_line:
|
||||||
|
|
||||||
Contents of the .[z]?debug_abbrev section:
|
Contents of the .[z]?debug_abbrev section:
|
||||||
|
|
||||||
Number TAG
|
Number TAG \(0x0\)
|
||||||
1 DW_TAG_compile_unit \[has children\]
|
1 DW_TAG_compile_unit \[has children\]
|
||||||
DW_AT_stmt_list DW_FORM_data4
|
DW_AT_stmt_list DW_FORM_data4
|
||||||
DW_AT_high_pc DW_FORM_addr
|
DW_AT_high_pc DW_FORM_addr
|
||||||
|
|
|
@ -7,7 +7,7 @@ Contents of the .zdebug_info section:
|
||||||
Compilation Unit @ offset 0x0:
|
Compilation Unit @ offset 0x0:
|
||||||
Length: 0x4e \(32-bit\)
|
Length: 0x4e \(32-bit\)
|
||||||
Version: 2
|
Version: 2
|
||||||
Abbrev Offset: 0
|
Abbrev Offset: 0x0
|
||||||
Pointer Size: 4
|
Pointer Size: 4
|
||||||
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
<0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
|
||||||
<c> DW_AT_stmt_list : 0x0
|
<c> DW_AT_stmt_list : 0x0
|
||||||
|
@ -32,7 +32,7 @@ Contents of the .zdebug_info section:
|
||||||
|
|
||||||
Contents of the .zdebug_abbrev section:
|
Contents of the .zdebug_abbrev section:
|
||||||
|
|
||||||
Number TAG
|
Number TAG \(0x0\)
|
||||||
1 DW_TAG_compile_unit \[has children\]
|
1 DW_TAG_compile_unit \[has children\]
|
||||||
DW_AT_stmt_list DW_FORM_data4
|
DW_AT_stmt_list DW_FORM_data4
|
||||||
DW_AT_high_pc DW_FORM_addr
|
DW_AT_high_pc DW_FORM_addr
|
||||||
|
|
Loading…
Reference in New Issue