mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
readelf: Show Unit Type for DWARF5
binutils/ChangeLog: * dwarf.c (process_debug_info): Print Unit Type for DWARF5. * testsuite/binutils-all/dw5.W: Adjust expected output. * testsuite/binutils-all/dwarf-attributes.W: Likewise. gas/ChangeLog: * testsuite/gas/elf/dwarf-5-cu.d: Adjust expected output.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2020-09-23 Mark Wielaard <mark@klomp.org>
|
||||||
|
|
||||||
|
* dwarf.c (process_debug_info): Print Unit Type for DWARF5.
|
||||||
|
* testsuite/binutils-all/dw5.W: Adjust expected output.
|
||||||
|
* testsuite/binutils-all/dwarf-attributes.W: Likewise.
|
||||||
|
|
||||||
2020-09-23 Mark Wielaard <mark@klomp.org>
|
2020-09-23 Mark Wielaard <mark@klomp.org>
|
||||||
|
|
||||||
* dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
|
* dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
|
||||||
|
@ -3361,6 +3361,10 @@ 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);
|
||||||
|
if (compunit.cu_version >= 5)
|
||||||
|
printf (_(" Unit Type: %s (%x)\n"),
|
||||||
|
get_DW_UT_name (compunit.cu_unit_type) ?: "???",
|
||||||
|
compunit.cu_unit_type);
|
||||||
printf (_(" Abbrev Offset: 0x%s\n"),
|
printf (_(" Abbrev Offset: 0x%s\n"),
|
||||||
dwarf_vmatoa ("x", 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);
|
||||||
|
@ -3,6 +3,7 @@ Contents of the .debug_info section:
|
|||||||
Compilation Unit @ offset 0x0:
|
Compilation Unit @ offset 0x0:
|
||||||
Length: 0x160 \(32-bit\)
|
Length: 0x160 \(32-bit\)
|
||||||
Version: 5
|
Version: 5
|
||||||
|
Unit Type: DW_UT_compile \(1\)
|
||||||
Abbrev Offset: 0x0
|
Abbrev Offset: 0x0
|
||||||
Pointer Size: 8
|
Pointer Size: 8
|
||||||
<0><c>: Abbrev Number: 6 \(DW_TAG_compile_unit\)
|
<0><c>: Abbrev Number: 6 \(DW_TAG_compile_unit\)
|
||||||
|
@ -3,6 +3,7 @@ Contents of the .debug_info section:
|
|||||||
Compilation Unit @ offset 0x0:
|
Compilation Unit @ offset 0x0:
|
||||||
Length: 0x40 \(32-bit\)
|
Length: 0x40 \(32-bit\)
|
||||||
Version: 5
|
Version: 5
|
||||||
|
Unit Type: DW_UT_compile \(1\)
|
||||||
Abbrev Offset: 0x0
|
Abbrev Offset: 0x0
|
||||||
Pointer Size: 4
|
Pointer Size: 4
|
||||||
<0><c>: Abbrev Number: 1 \(User TAG value: 0x5555\)
|
<0><c>: Abbrev Number: 1 \(User TAG value: 0x5555\)
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2020-09-23 Mark Wielaard <mark@klomp.org>
|
||||||
|
|
||||||
|
* testsuite/gas/elf/dwarf-5-cu.d: Adjust expected output.
|
||||||
|
|
||||||
2020-09-24 Alex Coplan <alex.coplan@arm.com>
|
2020-09-24 Alex Coplan <alex.coplan@arm.com>
|
||||||
|
|
||||||
* config/tc-arm.c (arm_cpus): Add Neoverse V1.
|
* config/tc-arm.c (arm_cpus): Add Neoverse V1.
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
Compilation Unit @ offset 0x0:
|
Compilation Unit @ offset 0x0:
|
||||||
Length: 0x.*
|
Length: 0x.*
|
||||||
Version: 5
|
Version: 5
|
||||||
|
Unit Type: DW_UT_compile \(1\)
|
||||||
Abbrev Offset: 0x0
|
Abbrev Offset: 0x0
|
||||||
Pointer Size: .
|
Pointer Size: .
|
||||||
#pass
|
#pass
|
||||||
|
Reference in New Issue
Block a user