| 1 |
## Test loading a skinny mach-o file with DWARF. First we make the mach-o file, |
| 2 |
## from yaml, then we convert the object file to a GSYM file, then we do |
| 3 |
## lookups on the newly created GSYM, and finally we dump the entire GSYM. |
| 4 |
|
| 5 |
# RUN: yaml2obj %s -o %t |
| 6 |
# RUN: llvm-gsymutil --convert %t -o %t.gsym 2>&1 | FileCheck %s --check-prefix=CONVERT |
| 7 |
# RUN: llvm-gsymutil --address=0 --address=0x100000000 --address=0x100000f90 --address=0x100000faa --address=0x200000000 %t.gsym 2>&1 | FileCheck %s --check-prefix=ADDR |
| 8 |
# RUN: llvm-gsymutil --verbose --address=0x100000000 --address=0x100000f90 --address=0x100000faa %t.gsym 2>&1 | FileCheck %s --check-prefix=ADDRV |
| 9 |
# RUN: llvm-gsymutil %t.gsym 2>&1 | FileCheck %s --check-prefix=DUMP |
| 10 |
|
| 11 |
# CONVERT: Input file: {{.*\.yaml\.tmp}} |
| 12 |
# CONVERT: Output file (x86_64): {{.*\.yaml\.tmp\.gsym}} |
| 13 |
# CONVERT: Loaded 2 functions from DWARF. |
| 14 |
# CONVERT: Loaded 2 functions from symbol table. |
| 15 |
# CONVERT: Pruned 2 functions, ended with 2 total |
| 16 |
|
| 17 |
# ADDR: Looking up addresses in "{{.*\.yaml\.tmp\.gsym}}": |
| 18 |
# ADDR-NEXT: 0x0000000000000000: error: address 0x0 is not in GSYM |
| 19 |
# ADDR-NEXT: 0x0000000100000000: error: address 0x100000000 is not in GSYM |
| 20 |
# ADDR-NEXT: 0x0000000100000f90: main @ /tmp/main.cpp:4 |
| 21 |
# ADDR-NEXT: 0x0000000100000faa: _Z3fooi @ /tmp/main.cpp:2 [inlined] |
| 22 |
# ADDR-NEXT: main + 26 @ /tmp/main.cpp:5 |
| 23 |
# ADDR-NEXT: 0x0000000200000000: error: address 0x200000000 is not in GSYM |
| 24 |
|
| 25 |
# ADDRV: error: address 0x100000000 is not in GSYM |
| 26 |
# ADDRV: FunctionInfo for 0x0000000100000f90: |
| 27 |
# ADDRV-NEXT: [0x0000000100000f90 - 0x0000000100000fb5) "main" |
| 28 |
# ADDRV-NEXT: LineTable: |
| 29 |
# ADDRV-NEXT: 0x0000000100000f90 /tmp/main.cpp:4 |
| 30 |
# ADDRV-NEXT: 0x0000000100000fa4 /tmp/main.cpp:5 |
| 31 |
# ADDRV-NEXT: 0x0000000100000faa /tmp/main.cpp:2 |
| 32 |
# ADDRV-NEXT: 0x0000000100000fb0 /tmp/main.cpp:5 |
| 33 |
# ADDRV-NEXT: 0x0000000100000fb3 /tmp/main.cpp:6 |
| 34 |
# ADDRV-NEXT: InlineInfo: |
| 35 |
# ADDRV-NEXT: [0x0000000100000f90 - 0x0000000100000fb5) main |
| 36 |
# ADDRV-NEXT: [0x0000000100000faa - 0x0000000100000fb0) _Z3fooi called from /tmp/main.cpp:5 |
| 37 |
|
| 38 |
# ADDRV: LookupResult for 0x0000000100000f90: |
| 39 |
# ADDRV-NEXT: 0x0000000100000f90: main @ /tmp/main.cpp:4 |
| 40 |
|
| 41 |
# ADDRV: FunctionInfo for 0x0000000100000faa: |
| 42 |
# ADDRV-NEXT: [0x0000000100000f90 - 0x0000000100000fb5) "main" |
| 43 |
# ADDRV-NEXT: LineTable: |
| 44 |
# ADDRV-NEXT: 0x0000000100000f90 /tmp/main.cpp:4 |
| 45 |
# ADDRV-NEXT: 0x0000000100000fa4 /tmp/main.cpp:5 |
| 46 |
# ADDRV-NEXT: 0x0000000100000faa /tmp/main.cpp:2 |
| 47 |
# ADDRV-NEXT: 0x0000000100000fb0 /tmp/main.cpp:5 |
| 48 |
# ADDRV-NEXT: 0x0000000100000fb3 /tmp/main.cpp:6 |
| 49 |
# ADDRV-NEXT: InlineInfo: |
| 50 |
# ADDRV-NEXT: [0x0000000100000f90 - 0x0000000100000fb5) main |
| 51 |
# ADDRV-NEXT: [0x0000000100000faa - 0x0000000100000fb0) _Z3fooi called from /tmp/main.cpp:5 |
| 52 |
|
| 53 |
# ADDRV: LookupResult for 0x0000000100000faa: |
| 54 |
# ADDRV-NEXT: 0x0000000100000faa: _Z3fooi @ /tmp/main.cpp:2 [inlined] |
| 55 |
# ADDRV-NEXT: main + 26 @ /tmp/main.cpp:5 |
| 56 |
|
| 57 |
# DUMP: Header: |
| 58 |
# DUMP-NEXT: Magic = 0x4753594d |
| 59 |
# DUMP-NEXT: Version = 0x0001 |
| 60 |
# DUMP-NEXT: AddrOffSize = 0x02 |
| 61 |
# DUMP-NEXT: UUIDSize = 0x10 |
| 62 |
# DUMP-NEXT: BaseAddress = 0x0000000100000000 |
| 63 |
# DUMP-NEXT: NumAddresses = 0x00000002 |
| 64 |
# DUMP-NEXT: StrtabOffset = 0x00000050 |
| 65 |
# DUMP-NEXT: StrtabSize = 0x0000001c |
| 66 |
# DUMP-NEXT: UUID = f6241b5209ed3bbea6bc8a7f5a4817cd |
| 67 |
|
| 68 |
# DUMP: Address Table: |
| 69 |
# DUMP-NEXT: INDEX OFFSET16 (ADDRESS) |
| 70 |
# DUMP-NEXT: ====== =============================== |
| 71 |
# DUMP-NEXT: [ 0] 0x0f70 (0x0000000100000f70) |
| 72 |
# DUMP-NEXT: [ 1] 0x0f90 (0x0000000100000f90) |
| 73 |
|
| 74 |
# DUMP: Address Info Offsets: |
| 75 |
# DUMP-NEXT: INDEX Offset |
| 76 |
# DUMP-NEXT: ====== ========== |
| 77 |
# DUMP-NEXT: [ 0] 0x0000006c |
| 78 |
# DUMP-NEXT: [ 1] 0x0000008c |
| 79 |
|
| 80 |
# DUMP: Files: |
| 81 |
# DUMP-NEXT: INDEX DIRECTORY BASENAME PATH |
| 82 |
# DUMP-NEXT: ====== ========== ========== ============================== |
| 83 |
# DUMP-NEXT: [ 0] 0x00000000 0x00000000 |
| 84 |
# DUMP-NEXT: [ 1] 0x00000009 0x0000000e /tmp/main.cpp |
| 85 |
|
| 86 |
# DUMP: String table: |
| 87 |
# DUMP-NEXT: 0x00000000: "" |
| 88 |
# DUMP-NEXT: 0x00000001: "_Z3fooi" |
| 89 |
# DUMP-NEXT: 0x00000009: "/tmp" |
| 90 |
# DUMP-NEXT: 0x0000000e: "main.cpp" |
| 91 |
# DUMP-NEXT: 0x00000017: "main" |
| 92 |
|
| 93 |
# DUMP: FunctionInfo @ 0x0000006c: [0x0000000100000f70 - 0x0000000100000f81) "_Z3fooi" |
| 94 |
# DUMP-NEXT: LineTable: |
| 95 |
# DUMP-NEXT: 0x0000000100000f70 /tmp/main.cpp:1 |
| 96 |
# DUMP-NEXT: 0x0000000100000f77 /tmp/main.cpp:2 |
| 97 |
# DUMP-NEXT: FunctionInfo @ 0x0000008c: [0x0000000100000f90 - 0x0000000100000fb5) "main" |
| 98 |
# DUMP-NEXT: LineTable: |
| 99 |
# DUMP-NEXT: 0x0000000100000f90 /tmp/main.cpp:4 |
| 100 |
# DUMP-NEXT: 0x0000000100000fa4 /tmp/main.cpp:5 |
| 101 |
# DUMP-NEXT: 0x0000000100000faa /tmp/main.cpp:2 |
| 102 |
# DUMP-NEXT: 0x0000000100000fb0 /tmp/main.cpp:5 |
| 103 |
# DUMP-NEXT: 0x0000000100000fb3 /tmp/main.cpp:6 |
| 104 |
# DUMP-NEXT: InlineInfo: |
| 105 |
# DUMP-NEXT: [0x0000000100000f90 - 0x0000000100000fb5) main |
| 106 |
# DUMP-NEXT: [0x0000000100000faa - 0x0000000100000fb0) _Z3fooi called from /tmp/main.cpp:5 |
| 107 |
|
| 108 |
--- !mach-o |
| 109 |
FileHeader: |
| 110 |
magic: 0xFEEDFACF |
| 111 |
cputype: 0x01000007 |
| 112 |
cpusubtype: 0x00000003 |
| 113 |
filetype: 0x0000000A |
| 114 |
ncmds: 7 |
| 115 |
sizeofcmds: 1400 |
| 116 |
flags: 0x00000000 |
| 117 |
reserved: 0x00000000 |
| 118 |
LoadCommands: |
| 119 |
- cmd: LC_UUID |
| 120 |
cmdsize: 24 |
| 121 |
uuid: F6241B52-09ED-3BBE-A6BC-8A7F5A4817CD |
| 122 |
- cmd: LC_BUILD_VERSION |
| 123 |
cmdsize: 24 |
| 124 |
platform: 1 |
| 125 |
minos: 658944 |
| 126 |
sdk: 658944 |
| 127 |
ntools: 0 |
| 128 |
- cmd: LC_SYMTAB |
| 129 |
cmdsize: 24 |
| 130 |
symoff: 4096 |
| 131 |
nsyms: 3 |
| 132 |
stroff: 4144 |
| 133 |
strsize: 37 |
| 134 |
- cmd: LC_SEGMENT_64 |
| 135 |
cmdsize: 72 |
| 136 |
segname: __PAGEZERO |
| 137 |
vmaddr: 0 |
| 138 |
vmsize: 4294967296 |
| 139 |
fileoff: 0 |
| 140 |
filesize: 0 |
| 141 |
maxprot: 0 |
| 142 |
initprot: 0 |
| 143 |
nsects: 0 |
| 144 |
flags: 0 |
| 145 |
- cmd: LC_SEGMENT_64 |
| 146 |
cmdsize: 232 |
| 147 |
segname: __TEXT |
| 148 |
vmaddr: 4294967296 |
| 149 |
vmsize: 4096 |
| 150 |
fileoff: 0 |
| 151 |
filesize: 0 |
| 152 |
maxprot: 5 |
| 153 |
initprot: 5 |
| 154 |
nsects: 2 |
| 155 |
flags: 0 |
| 156 |
Sections: |
| 157 |
- sectname: __text |
| 158 |
segname: __TEXT |
| 159 |
addr: 0x0000000100000F70 |
| 160 |
size: 69 |
| 161 |
offset: 0x00000000 |
| 162 |
align: 4 |
| 163 |
reloff: 0x00000000 |
| 164 |
nreloc: 0 |
| 165 |
flags: 0x80000400 |
| 166 |
reserved1: 0x00000000 |
| 167 |
reserved2: 0x00000000 |
| 168 |
reserved3: 0x00000000 |
| 169 |
content: CFFAEDFE07000001030000000A000000070000007805000000000000000000001B00000018000000F6241B5209ED3BBEA6BC8A7F5A4817CD32000000180000000100000000 |
| 170 |
- sectname: __unwind_info |
| 171 |
segname: __TEXT |
| 172 |
addr: 0x0000000100000FB8 |
| 173 |
size: 72 |
| 174 |
offset: 0x00000000 |
| 175 |
align: 2 |
| 176 |
reloff: 0x00000000 |
| 177 |
nreloc: 0 |
| 178 |
flags: 0x00000000 |
| 179 |
reserved1: 0x00000000 |
| 180 |
reserved2: 0x00000000 |
| 181 |
reserved3: 0x00000000 |
| 182 |
content: CFFAEDFE07000001030000000A000000070000007805000000000000000000001B00000018000000F6241B5209ED3BBEA6BC8A7F5A4817CD320000001800000001000000000E0A00 |
| 183 |
- cmd: LC_SEGMENT_64 |
| 184 |
cmdsize: 72 |
| 185 |
segname: __LINKEDIT |
| 186 |
vmaddr: 4294971392 |
| 187 |
vmsize: 4096 |
| 188 |
fileoff: 4096 |
| 189 |
filesize: 85 |
| 190 |
maxprot: 1 |
| 191 |
initprot: 1 |
| 192 |
nsects: 0 |
| 193 |
flags: 0 |
| 194 |
- cmd: LC_SEGMENT_64 |
| 195 |
cmdsize: 952 |
| 196 |
segname: __DWARF |
| 197 |
vmaddr: 4294975488 |
| 198 |
vmsize: 4096 |
| 199 |
fileoff: 8192 |
| 200 |
filesize: 1055 |
| 201 |
maxprot: 7 |
| 202 |
initprot: 3 |
| 203 |
nsects: 11 |
| 204 |
flags: 0 |
| 205 |
Sections: |
| 206 |
- sectname: __debug_line |
| 207 |
segname: __DWARF |
| 208 |
addr: 0x0000000100002000 |
| 209 |
size: 106 |
| 210 |
offset: 0x00002000 |
| 211 |
align: 0 |
| 212 |
reloff: 0x00000000 |
| 213 |
nreloc: 0 |
| 214 |
flags: 0x00000000 |
| 215 |
reserved1: 0x00000000 |
| 216 |
reserved2: 0x00000000 |
| 217 |
reserved3: 0x00000000 |
| 218 |
- sectname: __debug_pubnames |
| 219 |
segname: __DWARF |
| 220 |
addr: 0x000000010000206A |
| 221 |
size: 47 |
| 222 |
offset: 0x0000206A |
| 223 |
align: 0 |
| 224 |
reloff: 0x00000000 |
| 225 |
nreloc: 0 |
| 226 |
flags: 0x00000000 |
| 227 |
reserved1: 0x00000000 |
| 228 |
reserved2: 0x00000000 |
| 229 |
reserved3: 0x00000000 |
| 230 |
- sectname: __debug_pubtypes |
| 231 |
segname: __DWARF |
| 232 |
addr: 0x0000000100002099 |
| 233 |
size: 35 |
| 234 |
offset: 0x00002099 |
| 235 |
align: 0 |
| 236 |
reloff: 0x00000000 |
| 237 |
nreloc: 0 |
| 238 |
flags: 0x00000000 |
| 239 |
reserved1: 0x00000000 |
| 240 |
reserved2: 0x00000000 |
| 241 |
reserved3: 0x00000000 |
| 242 |
- sectname: __debug_aranges |
| 243 |
segname: __DWARF |
| 244 |
addr: 0x00000001000020BC |
| 245 |
size: 64 |
| 246 |
offset: 0x000020BC |
| 247 |
align: 0 |
| 248 |
reloff: 0x00000000 |
| 249 |
nreloc: 0 |
| 250 |
flags: 0x00000000 |
| 251 |
reserved1: 0x00000000 |
| 252 |
reserved2: 0x00000000 |
| 253 |
reserved3: 0x00000000 |
| 254 |
- sectname: __debug_info |
| 255 |
segname: __DWARF |
| 256 |
addr: 0x00000001000020FC |
| 257 |
size: 224 |
| 258 |
offset: 0x000020FC |
| 259 |
align: 0 |
| 260 |
reloff: 0x00000000 |
| 261 |
nreloc: 0 |
| 262 |
flags: 0x00000000 |
| 263 |
reserved1: 0x00000000 |
| 264 |
reserved2: 0x00000000 |
| 265 |
reserved3: 0x00000000 |
| 266 |
- sectname: __debug_abbrev |
| 267 |
segname: __DWARF |
| 268 |
addr: 0x00000001000021DC |
| 269 |
size: 168 |
| 270 |
offset: 0x000021DC |
| 271 |
align: 0 |
| 272 |
reloff: 0x00000000 |
| 273 |
nreloc: 0 |
| 274 |
flags: 0x00000000 |
| 275 |
reserved1: 0x00000000 |
| 276 |
reserved2: 0x00000000 |
| 277 |
reserved3: 0x00000000 |
| 278 |
- sectname: __debug_str |
| 279 |
segname: __DWARF |
| 280 |
addr: 0x0000000100002284 |
| 281 |
size: 101 |
| 282 |
offset: 0x00002284 |
| 283 |
align: 0 |
| 284 |
reloff: 0x00000000 |
| 285 |
nreloc: 0 |
| 286 |
flags: 0x00000000 |
| 287 |
reserved1: 0x00000000 |
| 288 |
reserved2: 0x00000000 |
| 289 |
reserved3: 0x00000000 |
| 290 |
- sectname: __apple_names |
| 291 |
segname: __DWARF |
| 292 |
addr: 0x00000001000022E9 |
| 293 |
size: 124 |
| 294 |
offset: 0x000022E9 |
| 295 |
align: 0 |
| 296 |
reloff: 0x00000000 |
| 297 |
nreloc: 0 |
| 298 |
flags: 0x00000000 |
| 299 |
reserved1: 0x00000000 |
| 300 |
reserved2: 0x00000000 |
| 301 |
reserved3: 0x00000000 |
| 302 |
content: 485341480100000003000000030000000C0000000000000001000000010006000000000002000000FFFFFFFF8973880BDE28616A6A7F9A7C44000000580000006C00000047000000020000002A000000AC000000000000003F000000020000002A000000AC0000000000000051000000010000006900000000000000 |
| 303 |
- sectname: __apple_namespac |
| 304 |
segname: __DWARF |
| 305 |
addr: 0x0000000100002365 |
| 306 |
size: 36 |
| 307 |
offset: 0x00002365 |
| 308 |
align: 0 |
| 309 |
reloff: 0x00000000 |
| 310 |
nreloc: 0 |
| 311 |
flags: 0x00000000 |
| 312 |
reserved1: 0x00000000 |
| 313 |
reserved2: 0x00000000 |
| 314 |
reserved3: 0x00000000 |
| 315 |
content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF |
| 316 |
- sectname: __apple_types |
| 317 |
segname: __DWARF |
| 318 |
addr: 0x0000000100002389 |
| 319 |
size: 114 |
| 320 |
offset: 0x00002389 |
| 321 |
align: 0 |
| 322 |
reloff: 0x00000000 |
| 323 |
nreloc: 0 |
| 324 |
flags: 0x00000000 |
| 325 |
reserved1: 0x00000000 |
| 326 |
reserved2: 0x00000000 |
| 327 |
reserved3: 0x00000000 |
| 328 |
content: 48534148010000000200000002000000180000000000000004000000010006000300050005000B000600060000000000010000003080880B6320957C440000005B0000004D0000000100000062000000240000A4283A0C000000006000000001000000D800000024000057D77B9300000000 |
| 329 |
- sectname: __apple_objc |
| 330 |
segname: __DWARF |
| 331 |
addr: 0x00000001000023FB |
| 332 |
size: 36 |
| 333 |
offset: 0x000023FB |
| 334 |
align: 0 |
| 335 |
reloff: 0x00000000 |
| 336 |
nreloc: 0 |
| 337 |
flags: 0x00000000 |
| 338 |
reserved1: 0x00000000 |
| 339 |
reserved2: 0x00000000 |
| 340 |
reserved3: 0x00000000 |
| 341 |
content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF |
| 342 |
LinkEditData: |
| 343 |
NameList: |
| 344 |
- n_strx: 2 |
| 345 |
n_type: 0x0F |
| 346 |
n_sect: 1 |
| 347 |
n_desc: 0 |
| 348 |
n_value: 4294971248 |
| 349 |
- n_strx: 11 |
| 350 |
n_type: 0x0F |
| 351 |
n_sect: 1 |
| 352 |
n_desc: 16 |
| 353 |
n_value: 4294967296 |
| 354 |
- n_strx: 31 |
| 355 |
n_type: 0x0F |
| 356 |
n_sect: 1 |
| 357 |
n_desc: 0 |
| 358 |
n_value: 4294971280 |
| 359 |
StringTable: |
| 360 |
- '' |
| 361 |
- '' |
| 362 |
- __Z3fooi |
| 363 |
- __mh_execute_header |
| 364 |
- _main |
| 365 |
DWARF: |
| 366 |
debug_str: |
| 367 |
- '' |
| 368 |
- 'Apple clang version 11.0.0 (clang-1100.0.33.17)' |
| 369 |
- main.cpp |
| 370 |
- '/tmp' |
| 371 |
- _Z3fooi |
| 372 |
- foo |
| 373 |
- i |
| 374 |
- int |
| 375 |
- main |
| 376 |
- argc |
| 377 |
- argv |
| 378 |
- char |
| 379 |
debug_abbrev: |
| 380 |
- Table: |
| 381 |
- Code: 0x00000001 |
| 382 |
Tag: DW_TAG_compile_unit |
| 383 |
Children: DW_CHILDREN_yes |
| 384 |
Attributes: |
| 385 |
- Attribute: DW_AT_producer |
| 386 |
Form: DW_FORM_strp |
| 387 |
- Attribute: DW_AT_language |
| 388 |
Form: DW_FORM_data2 |
| 389 |
- Attribute: DW_AT_name |
| 390 |
Form: DW_FORM_strp |
| 391 |
- Attribute: DW_AT_stmt_list |
| 392 |
Form: DW_FORM_sec_offset |
| 393 |
- Attribute: DW_AT_comp_dir |
| 394 |
Form: DW_FORM_strp |
| 395 |
- Attribute: DW_AT_GNU_pubnames |
| 396 |
Form: DW_FORM_flag_present |
| 397 |
- Attribute: DW_AT_low_pc |
| 398 |
Form: DW_FORM_addr |
| 399 |
- Attribute: DW_AT_high_pc |
| 400 |
Form: DW_FORM_data4 |
| 401 |
- Code: 0x00000002 |
| 402 |
Tag: DW_TAG_subprogram |
| 403 |
Children: DW_CHILDREN_yes |
| 404 |
Attributes: |
| 405 |
- Attribute: DW_AT_low_pc |
| 406 |
Form: DW_FORM_addr |
| 407 |
- Attribute: DW_AT_high_pc |
| 408 |
Form: DW_FORM_data4 |
| 409 |
- Attribute: DW_AT_frame_base |
| 410 |
Form: DW_FORM_exprloc |
| 411 |
- Attribute: DW_AT_abstract_origin |
| 412 |
Form: DW_FORM_ref_addr |
| 413 |
- Code: 0x00000003 |
| 414 |
Tag: DW_TAG_formal_parameter |
| 415 |
Children: DW_CHILDREN_no |
| 416 |
Attributes: |
| 417 |
- Attribute: DW_AT_location |
| 418 |
Form: DW_FORM_exprloc |
| 419 |
- Attribute: DW_AT_abstract_origin |
| 420 |
Form: DW_FORM_ref_addr |
| 421 |
- Code: 0x00000004 |
| 422 |
Tag: DW_TAG_subprogram |
| 423 |
Children: DW_CHILDREN_yes |
| 424 |
Attributes: |
| 425 |
- Attribute: DW_AT_linkage_name |
| 426 |
Form: DW_FORM_strp |
| 427 |
- Attribute: DW_AT_name |
| 428 |
Form: DW_FORM_strp |
| 429 |
- Attribute: DW_AT_decl_file |
| 430 |
Form: DW_FORM_data1 |
| 431 |
- Attribute: DW_AT_decl_line |
| 432 |
Form: DW_FORM_data1 |
| 433 |
- Attribute: DW_AT_type |
| 434 |
Form: DW_FORM_ref_addr |
| 435 |
- Attribute: DW_AT_external |
| 436 |
Form: DW_FORM_flag_present |
| 437 |
- Attribute: DW_AT_inline |
| 438 |
Form: DW_FORM_data1 |
| 439 |
- Code: 0x00000005 |
| 440 |
Tag: DW_TAG_formal_parameter |
| 441 |
Children: DW_CHILDREN_no |
| 442 |
Attributes: |
| 443 |
- Attribute: DW_AT_name |
| 444 |
Form: DW_FORM_strp |
| 445 |
- Attribute: DW_AT_decl_file |
| 446 |
Form: DW_FORM_data1 |
| 447 |
- Attribute: DW_AT_decl_line |
| 448 |
Form: DW_FORM_data1 |
| 449 |
- Attribute: DW_AT_type |
| 450 |
Form: DW_FORM_ref_addr |
| 451 |
- Code: 0x00000006 |
| 452 |
Tag: DW_TAG_base_type |
| 453 |
Children: DW_CHILDREN_no |
| 454 |
Attributes: |
| 455 |
- Attribute: DW_AT_name |
| 456 |
Form: DW_FORM_strp |
| 457 |
- Attribute: DW_AT_encoding |
| 458 |
Form: DW_FORM_data1 |
| 459 |
- Attribute: DW_AT_byte_size |
| 460 |
Form: DW_FORM_data1 |
| 461 |
- Code: 0x00000007 |
| 462 |
Tag: DW_TAG_subprogram |
| 463 |
Children: DW_CHILDREN_yes |
| 464 |
Attributes: |
| 465 |
- Attribute: DW_AT_low_pc |
| 466 |
Form: DW_FORM_addr |
| 467 |
- Attribute: DW_AT_high_pc |
| 468 |
Form: DW_FORM_data4 |
| 469 |
- Attribute: DW_AT_frame_base |
| 470 |
Form: DW_FORM_exprloc |
| 471 |
- Attribute: DW_AT_name |
| 472 |
Form: DW_FORM_strp |
| 473 |
- Attribute: DW_AT_decl_file |
| 474 |
Form: DW_FORM_data1 |
| 475 |
- Attribute: DW_AT_decl_line |
| 476 |
Form: DW_FORM_data1 |
| 477 |
- Attribute: DW_AT_type |
| 478 |
Form: DW_FORM_ref_addr |
| 479 |
- Attribute: DW_AT_external |
| 480 |
Form: DW_FORM_flag_present |
| 481 |
- Code: 0x00000008 |
| 482 |
Tag: DW_TAG_formal_parameter |
| 483 |
Children: DW_CHILDREN_no |
| 484 |
Attributes: |
| 485 |
- Attribute: DW_AT_location |
| 486 |
Form: DW_FORM_exprloc |
| 487 |
- Attribute: DW_AT_name |
| 488 |
Form: DW_FORM_strp |
| 489 |
- Attribute: DW_AT_decl_file |
| 490 |
Form: DW_FORM_data1 |
| 491 |
- Attribute: DW_AT_decl_line |
| 492 |
Form: DW_FORM_data1 |
| 493 |
- Attribute: DW_AT_type |
| 494 |
Form: DW_FORM_ref_addr |
| 495 |
- Code: 0x00000009 |
| 496 |
Tag: DW_TAG_variable |
| 497 |
Children: DW_CHILDREN_no |
| 498 |
Attributes: |
| 499 |
- Attribute: DW_AT_location |
| 500 |
Form: DW_FORM_exprloc |
| 501 |
- Attribute: DW_AT_name |
| 502 |
Form: DW_FORM_strp |
| 503 |
- Attribute: DW_AT_decl_file |
| 504 |
Form: DW_FORM_data1 |
| 505 |
- Attribute: DW_AT_decl_line |
| 506 |
Form: DW_FORM_data1 |
| 507 |
- Attribute: DW_AT_type |
| 508 |
Form: DW_FORM_ref_addr |
| 509 |
- Code: 0x0000000A |
| 510 |
Tag: DW_TAG_inlined_subroutine |
| 511 |
Children: DW_CHILDREN_yes |
| 512 |
Attributes: |
| 513 |
- Attribute: DW_AT_abstract_origin |
| 514 |
Form: DW_FORM_ref_addr |
| 515 |
- Attribute: DW_AT_low_pc |
| 516 |
Form: DW_FORM_addr |
| 517 |
- Attribute: DW_AT_high_pc |
| 518 |
Form: DW_FORM_data4 |
| 519 |
- Attribute: DW_AT_call_file |
| 520 |
Form: DW_FORM_data1 |
| 521 |
- Attribute: DW_AT_call_line |
| 522 |
Form: DW_FORM_data1 |
| 523 |
- Code: 0x0000000B |
| 524 |
Tag: DW_TAG_pointer_type |
| 525 |
Children: DW_CHILDREN_no |
| 526 |
Attributes: |
| 527 |
- Attribute: DW_AT_type |
| 528 |
Form: DW_FORM_ref_addr |
| 529 |
- Code: 0x0000000C |
| 530 |
Tag: DW_TAG_const_type |
| 531 |
Children: DW_CHILDREN_no |
| 532 |
Attributes: |
| 533 |
- Attribute: DW_AT_type |
| 534 |
Form: DW_FORM_ref_addr |
| 535 |
debug_aranges: |
| 536 |
- Length: 60 |
| 537 |
Version: 2 |
| 538 |
CuOffset: 0 |
| 539 |
AddressSize: 8 |
| 540 |
SegmentSelectorSize: 0 |
| 541 |
Descriptors: |
| 542 |
- Address: 0x0000000100000F70 |
| 543 |
Length: 17 |
| 544 |
- Address: 0x0000000100000F90 |
| 545 |
Length: 37 |
| 546 |
debug_pubnames: |
| 547 |
Length: 43 |
| 548 |
Version: 2 |
| 549 |
UnitOffset: 0 |
| 550 |
UnitSize: 224 |
| 551 |
Entries: |
| 552 |
- DieOffset: 0x0000002A |
| 553 |
Name: _Z3fooi |
| 554 |
- DieOffset: 0x0000002A |
| 555 |
Name: foo |
| 556 |
- DieOffset: 0x00000069 |
| 557 |
Name: main |
| 558 |
debug_pubtypes: |
| 559 |
Length: 31 |
| 560 |
Version: 2 |
| 561 |
UnitOffset: 0 |
| 562 |
UnitSize: 224 |
| 563 |
Entries: |
| 564 |
- DieOffset: 0x00000062 |
| 565 |
Name: int |
| 566 |
- DieOffset: 0x000000D8 |
| 567 |
Name: char |
| 568 |
debug_info: |
| 569 |
- Version: 4 |
| 570 |
AddrSize: 8 |
| 571 |
Entries: |
| 572 |
- AbbrCode: 0x00000001 |
| 573 |
Values: |
| 574 |
- Value: 0x0000000000000001 |
| 575 |
- Value: 0x0000000000000004 |
| 576 |
- Value: 0x0000000000000031 |
| 577 |
- Value: 0x0000000000000000 |
| 578 |
- Value: 0x000000000000003A |
| 579 |
- Value: 0x0000000000000001 |
| 580 |
- Value: 0x0000000100000F70 |
| 581 |
- Value: 0x0000000000000045 |
| 582 |
- AbbrCode: 0x00000002 |
| 583 |
Values: |
| 584 |
- Value: 0x0000000100000F70 |
| 585 |
- Value: 0x0000000000000011 |
| 586 |
- Value: 0x0000000000000001 |
| 587 |
BlockData: [ 0x56 ] |
| 588 |
- Value: 0x0000000000000046 |
| 589 |
- AbbrCode: 0x00000003 |
| 590 |
Values: |
| 591 |
- Value: 0x0000000000000002 |
| 592 |
BlockData: [ 0x91, 0x7C ] |
| 593 |
- Value: 0x0000000000000056 |
| 594 |
- AbbrCode: 0x00000000 |
| 595 |
- AbbrCode: 0x00000004 |
| 596 |
Values: |
| 597 |
- Value: 0x000000000000003F |
| 598 |
- Value: 0x0000000000000047 |
| 599 |
- Value: 0x0000000000000001 |
| 600 |
- Value: 0x0000000000000001 |
| 601 |
- Value: 0x0000000000000062 |
| 602 |
- Value: 0x0000000000000001 |
| 603 |
- Value: 0x0000000000000001 |
| 604 |
- AbbrCode: 0x00000005 |
| 605 |
Values: |
| 606 |
- Value: 0x000000000000004B |
| 607 |
- Value: 0x0000000000000001 |
| 608 |
- Value: 0x0000000000000001 |
| 609 |
- Value: 0x0000000000000062 |
| 610 |
- AbbrCode: 0x00000000 |
| 611 |
- AbbrCode: 0x00000006 |
| 612 |
Values: |
| 613 |
- Value: 0x000000000000004D |
| 614 |
- Value: 0x0000000000000005 |
| 615 |
- Value: 0x0000000000000004 |
| 616 |
- AbbrCode: 0x00000007 |
| 617 |
Values: |
| 618 |
- Value: 0x0000000100000F90 |
| 619 |
- Value: 0x0000000000000025 |
| 620 |
- Value: 0x0000000000000001 |
| 621 |
BlockData: [ 0x56 ] |
| 622 |
- Value: 0x0000000000000051 |
| 623 |
- Value: 0x0000000000000001 |
| 624 |
- Value: 0x0000000000000004 |
| 625 |
- Value: 0x0000000000000062 |
| 626 |
- Value: 0x0000000000000001 |
| 627 |
- AbbrCode: 0x00000008 |
| 628 |
Values: |
| 629 |
- Value: 0x0000000000000002 |
| 630 |
BlockData: [ 0x91, 0x74 ] |
| 631 |
- Value: 0x0000000000000056 |
| 632 |
- Value: 0x0000000000000001 |
| 633 |
- Value: 0x0000000000000004 |
| 634 |
- Value: 0x0000000000000062 |
| 635 |
- AbbrCode: 0x00000008 |
| 636 |
Values: |
| 637 |
- Value: 0x0000000000000002 |
| 638 |
BlockData: [ 0x91, 0x68 ] |
| 639 |
- Value: 0x000000000000005B |
| 640 |
- Value: 0x0000000000000001 |
| 641 |
- Value: 0x0000000000000004 |
| 642 |
- Value: 0x00000000000000C9 |
| 643 |
- AbbrCode: 0x00000009 |
| 644 |
Values: |
| 645 |
- Value: 0x0000000000000002 |
| 646 |
BlockData: [ 0x91, 0x64 ] |
| 647 |
- Value: 0x000000000000004B |
| 648 |
- Value: 0x0000000000000001 |
| 649 |
- Value: 0x0000000000000005 |
| 650 |
- Value: 0x0000000000000062 |
| 651 |
- AbbrCode: 0x0000000A |
| 652 |
Values: |
| 653 |
- Value: 0x0000000000000046 |
| 654 |
- Value: 0x0000000100000FAA |
| 655 |
- Value: 0x0000000000000006 |
| 656 |
- Value: 0x0000000000000001 |
| 657 |
- Value: 0x0000000000000005 |
| 658 |
- AbbrCode: 0x00000003 |
| 659 |
Values: |
| 660 |
- Value: 0x0000000000000002 |
| 661 |
BlockData: [ 0x91, 0x7C ] |
| 662 |
- Value: 0x0000000000000056 |
| 663 |
- AbbrCode: 0x00000000 |
| 664 |
- AbbrCode: 0x00000000 |
| 665 |
- AbbrCode: 0x0000000B |
| 666 |
Values: |
| 667 |
- Value: 0x00000000000000CE |
| 668 |
- AbbrCode: 0x0000000B |
| 669 |
Values: |
| 670 |
- Value: 0x00000000000000D3 |
| 671 |
- AbbrCode: 0x0000000C |
| 672 |
Values: |
| 673 |
- Value: 0x00000000000000D8 |
| 674 |
- AbbrCode: 0x00000006 |
| 675 |
Values: |
| 676 |
- Value: 0x0000000000000060 |
| 677 |
- Value: 0x0000000000000006 |
| 678 |
- Value: 0x0000000000000001 |
| 679 |
- AbbrCode: 0x00000000 |
| 680 |
debug_line: |
| 681 |
- Length: 102 |
| 682 |
Version: 4 |
| 683 |
PrologueLength: 32 |
| 684 |
MinInstLength: 1 |
| 685 |
MaxOpsPerInst: 1 |
| 686 |
DefaultIsStmt: 1 |
| 687 |
LineBase: 251 |
| 688 |
LineRange: 14 |
| 689 |
OpcodeBase: 13 |
| 690 |
StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ] |
| 691 |
Files: |
| 692 |
- Name: main.cpp |
| 693 |
DirIdx: 0 |
| 694 |
ModTime: 0 |
| 695 |
Length: 0 |
| 696 |
Opcodes: |
| 697 |
- Opcode: DW_LNS_extended_op |
| 698 |
ExtLen: 9 |
| 699 |
SubOpcode: DW_LNE_set_address |
| 700 |
Data: 4294971248 |
| 701 |
- Opcode: DW_LNS_copy |
| 702 |
Data: 0 |
| 703 |
- Opcode: DW_LNS_set_column |
| 704 |
Data: 12 |
| 705 |
- Opcode: DW_LNS_set_prologue_end |
| 706 |
Data: 0 |
| 707 |
- Opcode: 0x75 |
| 708 |
Data: 0 |
| 709 |
- Opcode: DW_LNS_set_column |
| 710 |
Data: 11 |
| 711 |
- Opcode: DW_LNS_negate_stmt |
| 712 |
Data: 0 |
| 713 |
- Opcode: 0x3C |
| 714 |
Data: 0 |
| 715 |
- Opcode: DW_LNS_set_column |
| 716 |
Data: 3 |
| 717 |
- Opcode: 0x3C |
| 718 |
Data: 0 |
| 719 |
- Opcode: DW_LNS_advance_pc |
| 720 |
Data: 4 |
| 721 |
- Opcode: DW_LNS_extended_op |
| 722 |
ExtLen: 1 |
| 723 |
SubOpcode: DW_LNE_end_sequence |
| 724 |
Data: 0 |
| 725 |
- Opcode: DW_LNS_extended_op |
| 726 |
ExtLen: 9 |
| 727 |
SubOpcode: DW_LNE_set_address |
| 728 |
Data: 4294971280 |
| 729 |
- Opcode: 0x15 |
| 730 |
Data: 0 |
| 731 |
- Opcode: DW_LNS_set_column |
| 732 |
Data: 14 |
| 733 |
- Opcode: DW_LNS_set_prologue_end |
| 734 |
Data: 0 |
| 735 |
- Opcode: DW_LNS_const_add_pc |
| 736 |
Data: 0 |
| 737 |
- Opcode: 0x3D |
| 738 |
Data: 0 |
| 739 |
- Opcode: DW_LNS_set_column |
| 740 |
Data: 12 |
| 741 |
- Opcode: 0x63 |
| 742 |
Data: 0 |
| 743 |
- Opcode: DW_LNS_set_column |
| 744 |
Data: 11 |
| 745 |
- Opcode: DW_LNS_negate_stmt |
| 746 |
Data: 0 |
| 747 |
- Opcode: 0x3C |
| 748 |
Data: 0 |
| 749 |
- Opcode: DW_LNS_set_column |
| 750 |
Data: 6 |
| 751 |
- Opcode: DW_LNS_negate_stmt |
| 752 |
Data: 0 |
| 753 |
- Opcode: 0x3F |
| 754 |
Data: 0 |
| 755 |
- Opcode: DW_LNS_set_column |
| 756 |
Data: 2 |
| 757 |
- Opcode: 0x3D |
| 758 |
Data: 0 |
| 759 |
- Opcode: DW_LNS_advance_pc |
| 760 |
Data: 2 |
| 761 |
- Opcode: DW_LNS_extended_op |
| 762 |
ExtLen: 1 |
| 763 |
SubOpcode: DW_LNE_end_sequence |
| 764 |
Data: 0 |
| 765 |
... |