1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
|
# RUN: llvm-pdbutil yaml2pdb %s --pdb=%t
# RUN: lldb-test symbols %t | FileCheck %s
# CHECK: CompileUnit
# CHECK: Function{{.*}}, demangled = main,
# CHECK-NEXT: Block{{.*}}
# CHECK-NEXT: Variable{{.*}}, name = "argc", type = {{.*}} (int), scope = parameter
# CHECK-NEXT: Variable{{.*}}, name = "argv", type = {{.*}} (char **), scope = parameter
# CHECK-NEXT: Block{{.*}}, parent = {{.*}}, name = "[error reading function name: Type index too high (2147418112)]", decl = inline_sites_live.cpp:14
# CHECK-NEXT: Variable{{.*}}, name = "param", type = {{.*}} (int), scope = parameter
# CHECK-NEXT: Variable{{.*}}, name = "local", type = {{.*}} (int), scope = local
---
MSF:
SuperBlock:
FreeBlockMap: 2
NumBlocks: 18
NumDirectoryBytes: 116
BlockMapAddr: 3
NumDirectoryBlocks: 1
DirectoryBlocks: [ 17 ]
NumStreams: 15
FileSize: 73728
IpiStream:
Records:
- Kind: LF_FUNC_ID
FuncId:
ParentScope: 0
FunctionType: 0x1001
Name: foo
- Kind: LF_FUNC_ID
FuncId:
ParentScope: 0
FunctionType: 4100
Name: main
- Kind: LF_BUILDINFO
BuildInfo:
ArgIndices: [ 4098, 4101, 4099, 4100, 4102 ]
TpiStream:
Records:
- Kind: LF_ARGLIST
ArgList:
ArgIndices: [ 116 ]
- Kind: LF_PROCEDURE
Procedure:
ReturnType: 3
CallConv: NearC
Options: [ None ]
ParameterCount: 1
ArgumentList: 4096
- Kind: LF_POINTER
Pointer:
ReferentType: 1648
Attrs: 65548
- Kind: LF_ARGLIST
ArgList:
ArgIndices: [ 116, 4098 ]
- Kind: LF_PROCEDURE
Procedure:
ReturnType: 116
CallConv: NearC
Options: [ None ]
ParameterCount: 2
ArgumentList: 4099
DbiStream:
BuildNumber: 36363
Flags: 0
MachineType: Amd64
Modules:
- Module: 'C:\Users\johannes\AppData\Local\Temp\inline_sites_live-2a62f2.o'
SourceFiles:
- 'F:\Dev\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\inline_sites_live.cpp'
Subsections:
- !InlineeLines
HasExtraFiles: false
Sites:
- FileName: 'F:\Dev\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\inline_sites_live.cpp'
LineNum: 14
Inlinee: 0x7FFF0000 # An index that is not in IPI stream, also present in "Records"
- !Lines
CodeSize: 17
Flags: [ ]
RelocOffset: 0
RelocSegment: 1
Blocks:
- FileName: 'F:\Dev\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\inline_sites_live.cpp'
Lines:
- Offset: 0
LineStart: 14
IsStatement: false
EndDelta: 0
- Offset: 5
LineStart: 15
IsStatement: false
EndDelta: 0
- Offset: 15
LineStart: 19
IsStatement: false
EndDelta: 0
Columns: []
- !FileChecksums
Checksums:
- FileName: 'F:\Dev\llvm-project\lldb\test\Shell\SymbolFile\NativePDB\inline_sites_live.cpp'
Kind: MD5
Checksum: 856E65504B68E2EF155921DFCCB753CE
Modi:
Records:
- Kind: S_OBJNAME
ObjNameSym:
Signature: 0
ObjectName: 'C:\Users\johannes\AppData\Local\Temp\inline_sites_live-2a62f2.o'
- Kind: S_COMPILE3
Compile3Sym:
Flags: [ ]
Machine: X64
FrontendMajor: 19
FrontendMinor: 1
FrontendBuild: 5
FrontendQFE: 0
BackendMajor: 19015
BackendMinor: 0
BackendBuild: 0
BackendQFE: 0
Version: clang version 19.1.5
- Kind: S_GPROC32
ProcSym:
PtrEnd: 264
CodeSize: 17
DbgStart: 0
DbgEnd: 0
FunctionType: 4097
Segment: 1
Flags: [ HasOptimizedDebugInfo ]
DisplayName: foo
- Kind: S_FRAMEPROC
FrameProcSym:
TotalFrameBytes: 8
PaddingFrameBytes: 0
OffsetToPadding: 0
BytesOfCalleeSavedRegisters: 0
OffsetOfExceptionHandler: 0
SectionIdOfExceptionHandler: 0
Flags: [ SafeBuffers ]
- Kind: S_LOCAL
LocalSym:
Type: 116
Flags: [ IsParameter ]
VarName: param
- Kind: S_DEFRANGE_FRAMEPOINTER_REL
DefRangeFramePointerRelSym:
Offset: 4
Range:
OffsetStart: 5
ISectStart: 1
Range: 12
Gaps: []
- Kind: S_LOCAL
LocalSym:
Type: 116
Flags: [ ]
VarName: local
- Kind: S_DEFRANGE_FRAMEPOINTER_REL
DefRangeFramePointerRelSym:
Offset: 0
Range:
OffsetStart: 5
ISectStart: 1
Range: 12
Gaps: []
- Kind: S_END
ScopeEndSym: {}
- Kind: S_GPROC32
ProcSym:
PtrEnd: 512
CodeSize: 39
DbgStart: 0
DbgEnd: 0
FunctionType: 4100
Offset: 32
Segment: 1
Flags: [ IsNoInline, HasOptimizedDebugInfo ]
DisplayName: main
- Kind: S_FRAMEPROC
FrameProcSym:
TotalFrameBytes: 24
PaddingFrameBytes: 0
OffsetToPadding: 0
BytesOfCalleeSavedRegisters: 0
OffsetOfExceptionHandler: 0
SectionIdOfExceptionHandler: 0
Flags: [ SafeBuffers ]
- Kind: S_INLINEES
CallerSym:
FuncID: [ 4096 ]
- Kind: S_LOCAL
LocalSym:
Type: 116
Flags: [ IsParameter ]
VarName: argc
- Kind: S_DEFRANGE_FRAMEPOINTER_REL
DefRangeFramePointerRelSym:
Offset: 4
Range:
OffsetStart: 45
ISectStart: 1
Range: 26
Gaps: []
- Kind: S_LOCAL
LocalSym:
Type: 4098
Flags: [ IsParameter ]
VarName: argv
- Kind: S_DEFRANGE_FRAMEPOINTER_REL
DefRangeFramePointerRelSym:
Offset: 8
Range:
OffsetStart: 45
ISectStart: 1
Range: 26
Gaps: []
- Kind: S_INLINESITE
InlineSiteSym:
PtrParent: 268
PtrEnd: 508
Inlinee: 0x7FFF0000 # An index which is not in IPI stream, also present in "InlineeLines"
AnnotationData: [ 6, 2, 3, 21, 4, 11, 0, 0 ]
- Kind: S_LOCAL
LocalSym:
Type: 116
Flags: [ IsParameter ]
VarName: param
- Kind: S_DEFRANGE_FRAMEPOINTER_REL
DefRangeFramePointerRelSym:
Offset: 20
Range:
OffsetStart: 53
ISectStart: 1
Range: 11
Gaps: []
- Kind: S_LOCAL
LocalSym:
Type: 116
Flags: [ ]
VarName: local
- Kind: S_DEFRANGE_FRAMEPOINTER_REL
DefRangeFramePointerRelSym:
Offset: 16
Range:
OffsetStart: 53
ISectStart: 1
Range: 11
Gaps: []
- Kind: S_INLINESITE_END
ScopeEndSym: {}
- Kind: S_END
ScopeEndSym: {}
SectionHeaders:
- Name: .text
VirtualSize: 71
VirtualAddress: 4096
SizeOfRawData: 512
PointerToRawData: 1024
PointerToRelocations: 0
PointerToLinenumbers: 0
NumberOfRelocations: 0
NumberOfLinenumbers: 0
Characteristics: 1610612768
- Name: .rdata
VirtualSize: 100
VirtualAddress: 8192
SizeOfRawData: 512
PointerToRawData: 1536
PointerToRelocations: 0
PointerToLinenumbers: 0
NumberOfRelocations: 0
NumberOfLinenumbers: 0
Characteristics: 1073741888
- Name: .pdata
VirtualSize: 24
VirtualAddress: 12288
SizeOfRawData: 512
PointerToRawData: 2048
PointerToRelocations: 0
PointerToLinenumbers: 0
NumberOfRelocations: 0
NumberOfLinenumbers: 0
Characteristics: 1073741888
PublicsStream:
Records:
- Kind: S_PUB32
PublicSym32:
Flags: [ Function ]
Offset: 32
Segment: 1
Name: main
- Kind: S_PUB32
PublicSym32:
Flags: [ Function ]
Segment: 1
Name: '?foo@@YAXH@Z'
...
|