Debian Codegraph @

llvm/test/tools/llvm-profgen/Inputs/split-dwarf-single.o.yaml

raw
1 # Source code:
2
3 # int foo() {
4 # return 1;
5 # }
6 #
7 # int main() {
8 # foo();
9 # return 0;
10 # }
11
12 # Build instructions (clang version 15.0.0):
13 # split-dwarf-single.o: clang -gsplit-dwarf=single -fdebug-compilation-dir=. test.c -fdebug-info-for-profiling -O0 -g -o split-dwarf-single.o -c
14 # split-dwarf-single.o.yaml: obj2yaml split-dwarf-single.o > split-dwarf-single.o.yaml
15
16 --- !ELF
17 FileHeader:
18 Class: ELFCLASS64
19 Data: ELFDATA2LSB
20 Type: ET_REL
21 Machine: EM_X86_64
22 SectionHeaderStringTable: .strtab
23 Sections:
24 - Name: .debug_abbrev
25 Type: SHT_PROGBITS
26 AddressAlign: 0x1
27 Content: 014A00101772171B25B442197625111B12067317000000
28 - Name: .debug_info
29 Type: SHT_PROGBITS
30 AddressAlign: 0x1
31 Content: 2400000005000408000000000428758115ED87CF0100000000000000000001002C00000000000000
32 - Name: .debug_str_offsets
33 Type: SHT_PROGBITS
34 AddressAlign: 0x1
35 Content: 0C000000050000000000000000000000
36 - Name: .debug_str_offsets.dwo
37 Type: SHT_PROGBITS
38 Flags: [ SHF_EXCLUDE ]
39 AddressAlign: 0x1
40 Content: 1C000000050000000000000004000000080000000D000000760000007D000000
41 - Name: .debug_str.dwo
42 Type: SHT_PROGBITS
43 Flags: [ SHF_EXCLUDE, SHF_MERGE, SHF_STRINGS ]
44 AddressAlign: 0x1
45 EntSize: 0x1
46 Content: 666F6F00696E74006D61696E00636C616E672076657273696F6E2031352E302E30202868747470733A2F2F6769746875622E636F6D2F6C6C766D2F6C6C766D2D70726F6A6563742E67697420313565336538396239626162323838363862303930656539663336326161386630333233303934372900746573742E630073706C69742D64776172662D73696E676C652E6F00
47 - Name: .debug_info.dwo
48 Type: SHT_PROGBITS
49 Flags: [ SHF_EXCLUDE ]
50 AddressAlign: 0x1
51 Content: 3900000005000508000000000428758115ED87CF01030C00040502000B00000001560000013800000002011C0000000156020005380000000301050400
52 - Name: .debug_abbrev.dwo
53 Type: SHT_PROGBITS
54 Flags: [ SHF_EXCLUDE ]
55 AddressAlign: 0x1
56 Content: 01110125251305032576250000022E00111B1206401803253A0B3B0B49133F19000003240003253E0B0B0B000000
57 - Name: .debug_line
58 Type: SHT_PROGBITS
59 AddressAlign: 0x1
60 Content: 5E0000000500080037000000010101FB0E0D00010101010000000100000101011F010000000003011F020F051E010000000000EF173AFD4B2F5E20815DE19BD24360F4040000090200000000000000000105030A4B0500BD05030AE5590208000101
61 - Name: .debug_line_str
62 Type: SHT_PROGBITS
63 Flags: [ SHF_MERGE, SHF_STRINGS ]
64 AddressAlign: 0x1
65 EntSize: 0x1
66 Content: 2E00746573742E6300
67 - Type: SectionHeaderTable
68 Sections:
69 - Name: .strtab
70 - Name: .debug_abbrev
71 - Name: .debug_info
72 - Name: .debug_str_offsets
73 - Name: .debug_str
74 - Name: .debug_str_offsets.dwo
75 - Name: .debug_str.dwo
76 - Name: .debug_info.dwo
77 - Name: .debug_abbrev.dwo
78 - Name: .debug_addr
79 - Name: .debug_line
80 - Name: .debug_line_str
81 DWARF:
82 debug_str:
83 - .
84 - split-dwarf-single.o
85 debug_addr:
86 - Length: 0x14
87 Version: 0x5
88 AddressSize: 0x8
89 Entries:
90 - {}
91 - Address: 0x10
92 ...