mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00: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:
@@ -3361,6 +3361,10 @@ 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);
|
||||
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"),
|
||||
dwarf_vmatoa ("x", compunit.cu_abbrev_offset));
|
||||
printf (_(" Pointer Size: %d\n"), compunit.cu_pointer_size);
|
||||
|
||||
Reference in New Issue
Block a user