1## For mach-o files we might have a universal (fat) mach-o file which 2## complicates the GSYM creation process as we need to be prepared to parse 3## more than one architecture. If no architectures are specified or more than 4## one architectures are specified on the command line, then all architectures 5## will be parsed and each GSYM file will have the architecture name appended 6## as an extension (.armv7 or .arm64). If a single architecture is specified, 7## then the GSYM file will be created in the normal location. 8 9# RUN: yaml2obj %s -o %t 10# RUN: llvm-gsymutil --convert %t --arch armv7 -o %t.armv7.gsym 2>&1 | FileCheck %s --check-prefix=ARMV7 11# RUN: llvm-gsymutil --convert %t --arch arm64 -o %t.arm64.gsym 2>&1 | FileCheck %s --check-prefix=ARM64 12# RUN: llvm-gsymutil --convert %t -o %t.gsym 2>&1 | FileCheck %s --check-prefix=FAT 13 14# ARMV7: Input file: {{.*\.yaml\.tmp}} 15# ARMV7-NEXT: Output file (armv7): {{.*\.yaml\.tmp\.armv7\.gsym}} 16# ARMV7-NEXT: Loaded 1 functions from DWARF. 17# ARMV7-NEXT: Loaded 0 functions from symbol table. 18# ARMV7-NEXT: Pruned 0 functions, ended with 1 total 19 20# ARM64: Input file: {{.*\.yaml\.tmp}} 21# ARM64-NEXT: Output file (arm64): {{.*\.yaml\.tmp\.arm64\.gsym}} 22# ARM64-NEXT: Loaded 1 functions from DWARF. 23# ARM64-NEXT: Loaded 0 functions from symbol table. 24# ARM64-NEXT: Pruned 0 functions, ended with 1 total 25 26# FAT: Input file: {{.*\.yaml\.tmp}} 27# FAT-NEXT: Output file (armv7): {{.*\.yaml\.tmp\.gsym\.armv7}} 28# FAT-NEXT: Loaded 1 functions from DWARF. 29# FAT-NEXT: Loaded 0 functions from symbol table. 30# FAT-NEXT: Pruned 0 functions, ended with 1 total 31# FAT-NEXT: Output file (arm64): {{.*\.yaml\.tmp\.gsym\.arm64}} 32# FAT-NEXT: Loaded 1 functions from DWARF. 33# FAT-NEXT: Loaded 0 functions from symbol table. 34# FAT-NEXT: Pruned 0 functions, ended with 1 total 35 36--- !fat-mach-o 37FatHeader: 38 magic: 0xCAFEBABE 39 nfat_arch: 2 40FatArchs: 41 - cputype: 0x0000000C 42 cpusubtype: 0x00000009 43 offset: 0x0000000000000040 44 size: 8884 45 align: 5 46 - cputype: 0x0100000C 47 cpusubtype: 0x00000000 48 offset: 0x0000000000002300 49 size: 8908 50 align: 5 51Slices: 52 - !mach-o 53 FileHeader: 54 magic: 0xFEEDFACE 55 cputype: 0x0000000C 56 cpusubtype: 0x00000009 57 filetype: 0x0000000A 58 ncmds: 6 59 sizeofcmds: 1088 60 flags: 0x00000000 61 LoadCommands: 62 - cmd: LC_UUID 63 cmdsize: 24 64 uuid: 7B08A997-C561-3D42-B774-0C3CD02345C7 65 - cmd: LC_SYMTAB 66 cmdsize: 24 67 symoff: 4096 68 nsyms: 2 69 stroff: 4120 70 strsize: 28 71 - cmd: LC_SEGMENT 72 cmdsize: 56 73 segname: __PAGEZERO 74 vmaddr: 0 75 vmsize: 16384 76 fileoff: 0 77 filesize: 0 78 maxprot: 0 79 initprot: 0 80 nsects: 0 81 flags: 0 82 - cmd: LC_SEGMENT 83 cmdsize: 124 84 segname: __TEXT 85 vmaddr: 16384 86 vmsize: 32768 87 fileoff: 0 88 filesize: 0 89 maxprot: 5 90 initprot: 5 91 nsects: 1 92 flags: 0 93 Sections: 94 - sectname: __text 95 segname: __TEXT 96 addr: 0x000000000000BFF0 97 size: 16 98 offset: 0x00000000 99 align: 1 100 reloff: 0x00000000 101 nreloc: 0 102 flags: 0x80000400 103 reserved1: 0x00000000 104 reserved2: 0x00000000 105 reserved3: 0x00000000 106 content: CEFAEDFE0C000000090000000A000000 107 - cmd: LC_SEGMENT 108 cmdsize: 56 109 segname: __LINKEDIT 110 vmaddr: 49152 111 vmsize: 4096 112 fileoff: 4096 113 filesize: 52 114 maxprot: 1 115 initprot: 1 116 nsects: 0 117 flags: 0 118 - cmd: LC_SEGMENT 119 cmdsize: 804 120 segname: __DWARF 121 vmaddr: 53248 122 vmsize: 4096 123 fileoff: 8192 124 filesize: 692 125 maxprot: 7 126 initprot: 3 127 nsects: 11 128 flags: 0 129 Sections: 130 - sectname: __debug_line 131 segname: __DWARF 132 addr: 0x000000000000D000 133 size: 59 134 offset: 0x00002000 135 align: 0 136 reloff: 0x00000000 137 nreloc: 0 138 flags: 0x00000000 139 reserved1: 0x00000000 140 reserved2: 0x00000000 141 reserved3: 0x00000000 142 - sectname: __debug_pubnames 143 segname: __DWARF 144 addr: 0x000000000000D03B 145 size: 27 146 offset: 0x0000203B 147 align: 0 148 reloff: 0x00000000 149 nreloc: 0 150 flags: 0x00000000 151 reserved1: 0x00000000 152 reserved2: 0x00000000 153 reserved3: 0x00000000 154 - sectname: __debug_pubtypes 155 segname: __DWARF 156 addr: 0x000000000000D056 157 size: 35 158 offset: 0x00002056 159 align: 0 160 reloff: 0x00000000 161 nreloc: 0 162 flags: 0x00000000 163 reserved1: 0x00000000 164 reserved2: 0x00000000 165 reserved3: 0x00000000 166 - sectname: __debug_aranges 167 segname: __DWARF 168 addr: 0x000000000000D079 169 size: 32 170 offset: 0x00002079 171 align: 0 172 reloff: 0x00000000 173 nreloc: 0 174 flags: 0x00000000 175 reserved1: 0x00000000 176 reserved2: 0x00000000 177 reserved3: 0x00000000 178 - sectname: __debug_info 179 segname: __DWARF 180 addr: 0x000000000000D099 181 size: 119 182 offset: 0x00002099 183 align: 0 184 reloff: 0x00000000 185 nreloc: 0 186 flags: 0x00000000 187 reserved1: 0x00000000 188 reserved2: 0x00000000 189 reserved3: 0x00000000 190 - sectname: __debug_abbrev 191 segname: __DWARF 192 addr: 0x000000000000D110 193 size: 87 194 offset: 0x00002110 195 align: 0 196 reloff: 0x00000000 197 nreloc: 0 198 flags: 0x00000000 199 reserved1: 0x00000000 200 reserved2: 0x00000000 201 reserved3: 0x00000000 202 - sectname: __debug_str 203 segname: __DWARF 204 addr: 0x000000000000D167 205 size: 87 206 offset: 0x00002167 207 align: 0 208 reloff: 0x00000000 209 nreloc: 0 210 flags: 0x00000000 211 reserved1: 0x00000000 212 reserved2: 0x00000000 213 reserved3: 0x00000000 214 - sectname: __apple_names 215 segname: __DWARF 216 addr: 0x000000000000D1BE 217 size: 60 218 offset: 0x000021BE 219 align: 0 220 reloff: 0x00000000 221 nreloc: 0 222 flags: 0x00000000 223 reserved1: 0x00000000 224 reserved2: 0x00000000 225 reserved3: 0x00000000 226 content: 485341480100000001000000010000000C000000000000000100000001000600000000006A7F9A7C2C0000003F000000010000002600000000000000 227 - sectname: __apple_namespac 228 segname: __DWARF 229 addr: 0x000000000000D1FA 230 size: 36 231 offset: 0x000021FA 232 align: 0 233 reloff: 0x00000000 234 nreloc: 0 235 flags: 0x00000000 236 reserved1: 0x00000000 237 reserved2: 0x00000000 238 reserved3: 0x00000000 239 content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF 240 - sectname: __apple_types 241 segname: __DWARF 242 addr: 0x000000000000D21E 243 size: 114 244 offset: 0x0000221E 245 align: 0 246 reloff: 0x00000000 247 nreloc: 0 248 flags: 0x00000000 249 reserved1: 0x00000000 250 reserved2: 0x00000000 251 reserved3: 0x00000000 252 content: 48534148010000000200000002000000180000000000000004000000010006000300050005000B000600060000000000010000003080880B6320957C440000005B0000004E0000000100000059000000240000A4283A0C0000000052000000010000006F00000024000057D77B9300000000 253 - sectname: __apple_objc 254 segname: __DWARF 255 addr: 0x000000000000D290 256 size: 36 257 offset: 0x00002290 258 align: 0 259 reloff: 0x00000000 260 nreloc: 0 261 flags: 0x00000000 262 reserved1: 0x00000000 263 reserved2: 0x00000000 264 reserved3: 0x00000000 265 content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF 266 LinkEditData: 267 NameList: 268 - n_strx: 2 269 n_type: 0x0F 270 n_sect: 1 271 n_desc: 16 272 n_value: 16384 273 - n_strx: 22 274 n_type: 0x0F 275 n_sect: 1 276 n_desc: 8 277 n_value: 49136 278 StringTable: 279 - '' 280 - '' 281 - __mh_execute_header 282 - _main 283 DWARF: 284 debug_str: 285 - '' 286 - 'Apple clang version 11.0.0 (clang-1100.0.33.17)' 287 - main.cpp 288 - '/tmp' 289 - main 290 - argc 291 - argv 292 - int 293 - char 294 debug_abbrev: 295 - Table: 296 - Code: 0x00000001 297 Tag: DW_TAG_compile_unit 298 Children: DW_CHILDREN_yes 299 Attributes: 300 - Attribute: DW_AT_producer 301 Form: DW_FORM_strp 302 - Attribute: DW_AT_language 303 Form: DW_FORM_data2 304 - Attribute: DW_AT_name 305 Form: DW_FORM_strp 306 - Attribute: DW_AT_stmt_list 307 Form: DW_FORM_sec_offset 308 - Attribute: DW_AT_comp_dir 309 Form: DW_FORM_strp 310 - Attribute: DW_AT_GNU_pubnames 311 Form: DW_FORM_flag_present 312 - Attribute: DW_AT_low_pc 313 Form: DW_FORM_addr 314 - Attribute: DW_AT_high_pc 315 Form: DW_FORM_data4 316 - Code: 0x00000002 317 Tag: DW_TAG_subprogram 318 Children: DW_CHILDREN_yes 319 Attributes: 320 - Attribute: DW_AT_low_pc 321 Form: DW_FORM_addr 322 - Attribute: DW_AT_high_pc 323 Form: DW_FORM_data4 324 - Attribute: DW_AT_frame_base 325 Form: DW_FORM_exprloc 326 - Attribute: DW_AT_name 327 Form: DW_FORM_strp 328 - Attribute: DW_AT_decl_file 329 Form: DW_FORM_data1 330 - Attribute: DW_AT_decl_line 331 Form: DW_FORM_data1 332 - Attribute: DW_AT_type 333 Form: DW_FORM_ref_addr 334 - Attribute: DW_AT_external 335 Form: DW_FORM_flag_present 336 - Attribute: DW_AT_APPLE_isa 337 Form: DW_FORM_flag 338 - Code: 0x00000003 339 Tag: DW_TAG_formal_parameter 340 Children: DW_CHILDREN_no 341 Attributes: 342 - Attribute: DW_AT_location 343 Form: DW_FORM_exprloc 344 - Attribute: DW_AT_name 345 Form: DW_FORM_strp 346 - Attribute: DW_AT_decl_file 347 Form: DW_FORM_data1 348 - Attribute: DW_AT_decl_line 349 Form: DW_FORM_data1 350 - Attribute: DW_AT_type 351 Form: DW_FORM_ref_addr 352 - Code: 0x00000004 353 Tag: DW_TAG_base_type 354 Children: DW_CHILDREN_no 355 Attributes: 356 - Attribute: DW_AT_name 357 Form: DW_FORM_strp 358 - Attribute: DW_AT_encoding 359 Form: DW_FORM_data1 360 - Attribute: DW_AT_byte_size 361 Form: DW_FORM_data1 362 - Code: 0x00000005 363 Tag: DW_TAG_pointer_type 364 Children: DW_CHILDREN_no 365 Attributes: 366 - Attribute: DW_AT_type 367 Form: DW_FORM_ref_addr 368 - Code: 0x00000006 369 Tag: DW_TAG_const_type 370 Children: DW_CHILDREN_no 371 Attributes: 372 - Attribute: DW_AT_type 373 Form: DW_FORM_ref_addr 374 debug_aranges: 375 - Length: 28 376 Version: 2 377 CuOffset: 0 378 AddressSize: 4 379 SegmentSelectorSize: 0 380 Descriptors: 381 - Address: 0x000000000000BFF0 382 Length: 16 383 debug_pubnames: 384 Length: 23 385 Version: 2 386 UnitOffset: 0 387 UnitSize: 119 388 Entries: 389 - DieOffset: 0x00000026 390 Name: main 391 debug_pubtypes: 392 Length: 31 393 Version: 2 394 UnitOffset: 0 395 UnitSize: 119 396 Entries: 397 - DieOffset: 0x00000059 398 Name: int 399 - DieOffset: 0x0000006F 400 Name: char 401 debug_info: 402 - Version: 4 403 AddrSize: 4 404 Entries: 405 - AbbrCode: 0x00000001 406 Values: 407 - Value: 0x0000000000000001 408 - Value: 0x0000000000000004 409 - Value: 0x0000000000000031 410 - Value: 0x0000000000000000 411 - Value: 0x000000000000003A 412 - Value: 0x0000000000000001 413 - Value: 0x000000000000BFF0 414 - Value: 0x0000000000000010 415 - AbbrCode: 0x00000002 416 Values: 417 - Value: 0x000000000000BFF0 418 - Value: 0x0000000000000010 419 - Value: 0x0000000000000001 420 BlockData: [ 0x57 ] 421 - Value: 0x000000000000003F 422 - Value: 0x0000000000000001 423 - Value: 0x0000000000000001 424 - Value: 0x0000000000000059 425 - Value: 0x0000000000000001 426 - Value: 0x0000000000000001 427 - AbbrCode: 0x00000003 428 Values: 429 - Value: 0x0000000000000002 430 BlockData: [ 0x7D, 0x04 ] 431 - Value: 0x0000000000000044 432 - Value: 0x0000000000000001 433 - Value: 0x0000000000000001 434 - Value: 0x0000000000000059 435 - AbbrCode: 0x00000003 436 Values: 437 - Value: 0x0000000000000002 438 BlockData: [ 0x7D, 0x00 ] 439 - Value: 0x0000000000000049 440 - Value: 0x0000000000000001 441 - Value: 0x0000000000000001 442 - Value: 0x0000000000000060 443 - AbbrCode: 0x00000000 444 - AbbrCode: 0x00000004 445 Values: 446 - Value: 0x000000000000004E 447 - Value: 0x0000000000000005 448 - Value: 0x0000000000000004 449 - AbbrCode: 0x00000005 450 Values: 451 - Value: 0x0000000000000065 452 - AbbrCode: 0x00000005 453 Values: 454 - Value: 0x000000000000006A 455 - AbbrCode: 0x00000006 456 Values: 457 - Value: 0x000000000000006F 458 - AbbrCode: 0x00000004 459 Values: 460 - Value: 0x0000000000000052 461 - Value: 0x0000000000000006 462 - Value: 0x0000000000000001 463 - AbbrCode: 0x00000000 464 debug_line: 465 - Length: 55 466 Version: 4 467 PrologueLength: 32 468 MinInstLength: 1 469 MaxOpsPerInst: 1 470 DefaultIsStmt: 1 471 LineBase: 251 472 LineRange: 14 473 OpcodeBase: 13 474 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ] 475 Files: 476 - Name: main.cpp 477 DirIdx: 0 478 ModTime: 0 479 Length: 0 480 Opcodes: 481 - Opcode: DW_LNS_extended_op 482 ExtLen: 5 483 SubOpcode: DW_LNE_set_address 484 Data: 49136 485 - Opcode: DW_LNS_copy 486 Data: 0 487 - Opcode: DW_LNS_set_column 488 Data: 2 489 - Opcode: DW_LNS_set_prologue_end 490 Data: 0 491 - Opcode: 0x9F 492 Data: 0 493 - Opcode: DW_LNS_advance_pc 494 Data: 6 495 - Opcode: DW_LNS_extended_op 496 ExtLen: 1 497 SubOpcode: DW_LNE_end_sequence 498 Data: 0 499 - !mach-o 500 FileHeader: 501 magic: 0xFEEDFACF 502 cputype: 0x0100000C 503 cpusubtype: 0x00000000 504 filetype: 0x0000000A 505 ncmds: 7 506 sizeofcmds: 1400 507 flags: 0x00000000 508 reserved: 0x00000000 509 LoadCommands: 510 - cmd: LC_UUID 511 cmdsize: 24 512 uuid: E74896D8-32D6-3EB2-BB23-4AA9A0F54CB2 513 - cmd: LC_BUILD_VERSION 514 cmdsize: 24 515 platform: 2 516 minos: 852480 517 sdk: 852480 518 ntools: 0 519 - cmd: LC_SYMTAB 520 cmdsize: 24 521 symoff: 4096 522 nsyms: 2 523 stroff: 4128 524 strsize: 28 525 - cmd: LC_SEGMENT_64 526 cmdsize: 72 527 segname: __PAGEZERO 528 vmaddr: 0 529 vmsize: 4294967296 530 fileoff: 0 531 filesize: 0 532 maxprot: 0 533 initprot: 0 534 nsects: 0 535 flags: 0 536 - cmd: LC_SEGMENT_64 537 cmdsize: 232 538 segname: __TEXT 539 vmaddr: 4294967296 540 vmsize: 32768 541 fileoff: 0 542 filesize: 0 543 maxprot: 5 544 initprot: 5 545 nsects: 2 546 flags: 0 547 Sections: 548 - sectname: __text 549 segname: __TEXT 550 addr: 0x0000000100007F9C 551 size: 28 552 offset: 0x00000000 553 align: 2 554 reloff: 0x00000000 555 nreloc: 0 556 flags: 0x80000400 557 reserved1: 0x00000000 558 reserved2: 0x00000000 559 reserved3: 0x00000000 560 content: CFFAEDFE0C000001000000000A000000070000007805000000000000 561 - sectname: __unwind_info 562 segname: __TEXT 563 addr: 0x0000000100007FB8 564 size: 72 565 offset: 0x00000000 566 align: 2 567 reloff: 0x00000000 568 nreloc: 0 569 flags: 0x00000000 570 reserved1: 0x00000000 571 reserved2: 0x00000000 572 reserved3: 0x00000000 573 content: CFFAEDFE0C000001000000000A000000070000007805000000000000000000001B00000018000000E74896D832D63EB2BB234AA9A0F54CB232000000180000000200000000020D00 574 - cmd: LC_SEGMENT_64 575 cmdsize: 72 576 segname: __LINKEDIT 577 vmaddr: 4295000064 578 vmsize: 4096 579 fileoff: 4096 580 filesize: 60 581 maxprot: 1 582 initprot: 1 583 nsects: 0 584 flags: 0 585 - cmd: LC_SEGMENT_64 586 cmdsize: 952 587 segname: __DWARF 588 vmaddr: 4295004160 589 vmsize: 4096 590 fileoff: 8192 591 filesize: 716 592 maxprot: 7 593 initprot: 3 594 nsects: 11 595 flags: 0 596 Sections: 597 - sectname: __debug_line 598 segname: __DWARF 599 addr: 0x0000000100009000 600 size: 63 601 offset: 0x00002000 602 align: 0 603 reloff: 0x00000000 604 nreloc: 0 605 flags: 0x00000000 606 reserved1: 0x00000000 607 reserved2: 0x00000000 608 reserved3: 0x00000000 609 - sectname: __debug_pubnames 610 segname: __DWARF 611 addr: 0x000000010000903F 612 size: 27 613 offset: 0x0000203F 614 align: 0 615 reloff: 0x00000000 616 nreloc: 0 617 flags: 0x00000000 618 reserved1: 0x00000000 619 reserved2: 0x00000000 620 reserved3: 0x00000000 621 - sectname: __debug_pubtypes 622 segname: __DWARF 623 addr: 0x000000010000905A 624 size: 35 625 offset: 0x0000205A 626 align: 0 627 reloff: 0x00000000 628 nreloc: 0 629 flags: 0x00000000 630 reserved1: 0x00000000 631 reserved2: 0x00000000 632 reserved3: 0x00000000 633 - sectname: __debug_aranges 634 segname: __DWARF 635 addr: 0x000000010000907D 636 size: 48 637 offset: 0x0000207D 638 align: 0 639 reloff: 0x00000000 640 nreloc: 0 641 flags: 0x00000000 642 reserved1: 0x00000000 643 reserved2: 0x00000000 644 reserved3: 0x00000000 645 - sectname: __debug_info 646 segname: __DWARF 647 addr: 0x00000001000090AD 648 size: 126 649 offset: 0x000020AD 650 align: 0 651 reloff: 0x00000000 652 nreloc: 0 653 flags: 0x00000000 654 reserved1: 0x00000000 655 reserved2: 0x00000000 656 reserved3: 0x00000000 657 - sectname: __debug_abbrev 658 segname: __DWARF 659 addr: 0x000000010000912B 660 size: 84 661 offset: 0x0000212B 662 align: 0 663 reloff: 0x00000000 664 nreloc: 0 665 flags: 0x00000000 666 reserved1: 0x00000000 667 reserved2: 0x00000000 668 reserved3: 0x00000000 669 - sectname: __debug_str 670 segname: __DWARF 671 addr: 0x000000010000917F 672 size: 87 673 offset: 0x0000217F 674 align: 0 675 reloff: 0x00000000 676 nreloc: 0 677 flags: 0x00000000 678 reserved1: 0x00000000 679 reserved2: 0x00000000 680 reserved3: 0x00000000 681 - sectname: __apple_names 682 segname: __DWARF 683 addr: 0x00000001000091D6 684 size: 60 685 offset: 0x000021D6 686 align: 0 687 reloff: 0x00000000 688 nreloc: 0 689 flags: 0x00000000 690 reserved1: 0x00000000 691 reserved2: 0x00000000 692 reserved3: 0x00000000 693 content: 485341480100000001000000010000000C000000000000000100000001000600000000006A7F9A7C2C0000003F000000010000002A00000000000000 694 - sectname: __apple_namespac 695 segname: __DWARF 696 addr: 0x0000000100009212 697 size: 36 698 offset: 0x00002212 699 align: 0 700 reloff: 0x00000000 701 nreloc: 0 702 flags: 0x00000000 703 reserved1: 0x00000000 704 reserved2: 0x00000000 705 reserved3: 0x00000000 706 content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF 707 - sectname: __apple_types 708 segname: __DWARF 709 addr: 0x0000000100009236 710 size: 114 711 offset: 0x00002236 712 align: 0 713 reloff: 0x00000000 714 nreloc: 0 715 flags: 0x00000000 716 reserved1: 0x00000000 717 reserved2: 0x00000000 718 reserved3: 0x00000000 719 content: 48534148010000000200000002000000180000000000000004000000010006000300050005000B000600060000000000010000003080880B6320957C440000005B0000004E0000000100000060000000240000A4283A0C0000000052000000010000007600000024000057D77B9300000000 720 - sectname: __apple_objc 721 segname: __DWARF 722 addr: 0x00000001000092A8 723 size: 36 724 offset: 0x000022A8 725 align: 0 726 reloff: 0x00000000 727 nreloc: 0 728 flags: 0x00000000 729 reserved1: 0x00000000 730 reserved2: 0x00000000 731 reserved3: 0x00000000 732 content: 485341480100000001000000000000000C000000000000000100000001000600FFFFFFFF 733 LinkEditData: 734 NameList: 735 - n_strx: 2 736 n_type: 0x0F 737 n_sect: 1 738 n_desc: 16 739 n_value: 4294967296 740 - n_strx: 22 741 n_type: 0x0F 742 n_sect: 1 743 n_desc: 0 744 n_value: 4294999964 745 StringTable: 746 - '' 747 - '' 748 - __mh_execute_header 749 - _main 750 DWARF: 751 debug_str: 752 - '' 753 - 'Apple clang version 11.0.0 (clang-1100.0.33.17)' 754 - main.cpp 755 - '/tmp' 756 - main 757 - argc 758 - argv 759 - int 760 - char 761 debug_abbrev: 762 - Table: 763 - Code: 0x00000001 764 Tag: DW_TAG_compile_unit 765 Children: DW_CHILDREN_yes 766 Attributes: 767 - Attribute: DW_AT_producer 768 Form: DW_FORM_strp 769 - Attribute: DW_AT_language 770 Form: DW_FORM_data2 771 - Attribute: DW_AT_name 772 Form: DW_FORM_strp 773 - Attribute: DW_AT_stmt_list 774 Form: DW_FORM_sec_offset 775 - Attribute: DW_AT_comp_dir 776 Form: DW_FORM_strp 777 - Attribute: DW_AT_GNU_pubnames 778 Form: DW_FORM_flag_present 779 - Attribute: DW_AT_low_pc 780 Form: DW_FORM_addr 781 - Attribute: DW_AT_high_pc 782 Form: DW_FORM_data4 783 - Code: 0x00000002 784 Tag: DW_TAG_subprogram 785 Children: DW_CHILDREN_yes 786 Attributes: 787 - Attribute: DW_AT_low_pc 788 Form: DW_FORM_addr 789 - Attribute: DW_AT_high_pc 790 Form: DW_FORM_data4 791 - Attribute: DW_AT_frame_base 792 Form: DW_FORM_exprloc 793 - Attribute: DW_AT_name 794 Form: DW_FORM_strp 795 - Attribute: DW_AT_decl_file 796 Form: DW_FORM_data1 797 - Attribute: DW_AT_decl_line 798 Form: DW_FORM_data1 799 - Attribute: DW_AT_type 800 Form: DW_FORM_ref_addr 801 - Attribute: DW_AT_external 802 Form: DW_FORM_flag_present 803 - Code: 0x00000003 804 Tag: DW_TAG_formal_parameter 805 Children: DW_CHILDREN_no 806 Attributes: 807 - Attribute: DW_AT_location 808 Form: DW_FORM_exprloc 809 - Attribute: DW_AT_name 810 Form: DW_FORM_strp 811 - Attribute: DW_AT_decl_file 812 Form: DW_FORM_data1 813 - Attribute: DW_AT_decl_line 814 Form: DW_FORM_data1 815 - Attribute: DW_AT_type 816 Form: DW_FORM_ref_addr 817 - Code: 0x00000004 818 Tag: DW_TAG_base_type 819 Children: DW_CHILDREN_no 820 Attributes: 821 - Attribute: DW_AT_name 822 Form: DW_FORM_strp 823 - Attribute: DW_AT_encoding 824 Form: DW_FORM_data1 825 - Attribute: DW_AT_byte_size 826 Form: DW_FORM_data1 827 - Code: 0x00000005 828 Tag: DW_TAG_pointer_type 829 Children: DW_CHILDREN_no 830 Attributes: 831 - Attribute: DW_AT_type 832 Form: DW_FORM_ref_addr 833 - Code: 0x00000006 834 Tag: DW_TAG_const_type 835 Children: DW_CHILDREN_no 836 Attributes: 837 - Attribute: DW_AT_type 838 Form: DW_FORM_ref_addr 839 debug_aranges: 840 - Length: 44 841 Version: 2 842 CuOffset: 0 843 AddressSize: 8 844 SegmentSelectorSize: 0 845 Descriptors: 846 - Address: 0x0000000100007F9C 847 Length: 28 848 debug_pubnames: 849 Length: 23 850 Version: 2 851 UnitOffset: 0 852 UnitSize: 126 853 Entries: 854 - DieOffset: 0x0000002A 855 Name: main 856 debug_pubtypes: 857 Length: 31 858 Version: 2 859 UnitOffset: 0 860 UnitSize: 126 861 Entries: 862 - DieOffset: 0x00000060 863 Name: int 864 - DieOffset: 0x00000076 865 Name: char 866 debug_info: 867 - Length: 122 868 Version: 4 869 AbbrOffset: 0 870 AddrSize: 8 871 Entries: 872 - AbbrCode: 0x00000001 873 Values: 874 - Value: 0x0000000000000001 875 - Value: 0x0000000000000004 876 - Value: 0x0000000000000031 877 - Value: 0x0000000000000000 878 - Value: 0x000000000000003A 879 - Value: 0x0000000000000001 880 - Value: 0x0000000100007F9C 881 - Value: 0x000000000000001C 882 - AbbrCode: 0x00000002 883 Values: 884 - Value: 0x0000000100007F9C 885 - Value: 0x000000000000001C 886 - Value: 0x0000000000000001 887 BlockData: [ 0x6F ] 888 - Value: 0x000000000000003F 889 - Value: 0x0000000000000001 890 - Value: 0x0000000000000001 891 - Value: 0x0000000000000060 892 - Value: 0x0000000000000001 893 - AbbrCode: 0x00000003 894 Values: 895 - Value: 0x0000000000000002 896 BlockData: [ 0x91, 0x08 ] 897 - Value: 0x0000000000000044 898 - Value: 0x0000000000000001 899 - Value: 0x0000000000000001 900 - Value: 0x0000000000000060 901 - AbbrCode: 0x00000003 902 Values: 903 - Value: 0x0000000000000002 904 BlockData: [ 0x91, 0x00 ] 905 - Value: 0x0000000000000049 906 - Value: 0x0000000000000001 907 - Value: 0x0000000000000001 908 - Value: 0x0000000000000067 909 - AbbrCode: 0x00000000 910 Values: [] 911 - AbbrCode: 0x00000004 912 Values: 913 - Value: 0x000000000000004E 914 - Value: 0x0000000000000005 915 - Value: 0x0000000000000004 916 - AbbrCode: 0x00000005 917 Values: 918 - Value: 0x000000000000006C 919 - AbbrCode: 0x00000005 920 Values: 921 - Value: 0x0000000000000071 922 - AbbrCode: 0x00000006 923 Values: 924 - Value: 0x0000000000000076 925 - AbbrCode: 0x00000004 926 Values: 927 - Value: 0x0000000000000052 928 - Value: 0x0000000000000006 929 - Value: 0x0000000000000001 930 - AbbrCode: 0x00000000 931 Values: [] 932 debug_line: 933 - Length: 59 934 Version: 4 935 PrologueLength: 32 936 MinInstLength: 1 937 MaxOpsPerInst: 1 938 DefaultIsStmt: 1 939 LineBase: 251 940 LineRange: 14 941 OpcodeBase: 13 942 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ] 943 Files: 944 - Name: main.cpp 945 DirIdx: 0 946 ModTime: 0 947 Length: 0 948 Opcodes: 949 - Opcode: DW_LNS_extended_op 950 ExtLen: 9 951 SubOpcode: DW_LNE_set_address 952 Data: 4294999964 953 - Opcode: DW_LNS_copy 954 Data: 0 955 - Opcode: DW_LNS_set_column 956 Data: 2 957 - Opcode: DW_LNS_set_prologue_end 958 Data: 0 959 - Opcode: 0xF3 960 Data: 0 961 - Opcode: DW_LNS_advance_pc 962 Data: 12 963 - Opcode: DW_LNS_extended_op 964 ExtLen: 1 965 SubOpcode: DW_LNE_end_sequence 966 Data: 0 967... 968