[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/27386] [readelf] DW_UT_split_compile and DW_UT_skeleton su
From: |
vries at gcc dot gnu.org |
Subject: |
[Bug binutils/27386] [readelf] DW_UT_split_compile and DW_UT_skeleton support |
Date: |
Tue, 09 Feb 2021 09:16:19 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27386
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 13214
--> https://sourceware.org/bugzilla/attachment.cgi?id=13214&action=edit
Tentative patch
Does not print dwo_id, but at least manages to print contents of CUs, such that
we have:
...
$ ~/binutils/build/binutils/readelf -w a.out > READELF
$
...
and:
...
Compilation Unit @ offset 0xc7:
Length: 0x31 (32-bit)
Version: 5
Unit Type: DW_UT_skeleton (4)
Abbrev Offset: 0x64
Pointer Size: 8
<0><db>: Abbrev Number: 1 (DW_TAG_skeleton_unit)
<dc> DW_AT_low_pc : 0x400507
<e4> DW_AT_high_pc : 0x15
<ec> DW_AT_stmt_list : 0xe9
<f0> DW_AT_dwo_name : (indirect string, offset: 0x1dc): hello.dwo
<f4> DW_AT_comp_dir : (indirect string, offset: 0x1d0): /home/vries
<f8> DW_AT_GNU_pubnames: 1
<f8> DW_AT_GNU_addr_base: 0x0
...
and:
...
Compilation Unit @ offset 0x0:
Length: 0x229 (32-bit)
Version: 5
Unit Type: DW_UT_split_compile (5)
Abbrev Offset: 0x0
Pointer Size: 8
<0><14>: Abbrev Number: 12 (DW_TAG_compile_unit)
<15> DW_AT_producer : (indexed string: 0x15): GNU C11 7.5.0
-mtune=generic -march=x86-64 -gsplit-dwarf -gdwarf-5
<16> DW_AT_language : 29 (C11)
<17> DW_AT_name : (indexed string: 0x36): hello.c
<18> DW_AT_comp_dir : (indexed string: 0x3a): /home/vries
...
--
You are receiving this mail because:
You are on the CC list for the bug.