Lines Matching +full:form +full:- +full:data

1 ## Test loading a skinny mach-o file with DWARF. First we make the mach-o file,
5 # RUN: yaml2obj %s -o %t
6 # RUN: llvm-gsymutil --convert %t -o %t.gsym 2>&1 | FileCheck %s --check-prefix=CONVERT
7 …lvm-gsymutil --address=0 --address=0x100000000 --address=0x100000f90 --address=0x100000faa --addre…
8 # RUN: llvm-gsymutil --verbose --address=0x100000000 --address=0x100000f90 --address=0x100000faa %t…
9 # RUN: llvm-gsymutil %t.gsym 2>&1 | FileCheck %s --check-prefix=DUMP
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
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
39 # ADDRV-NEXT: 0x0000000100000f90: main @ /tmp/main.cpp:4
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
54 # ADDRV-NEXT: 0x0000000100000faa: _Z3fooi @ /tmp/main.cpp:2 [inlined]
55 # ADDRV-NEXT: main + 26 @ /tmp/main.cpp:5
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
69 # DUMP-NEXT: INDEX OFFSET16 (ADDRESS)
70 # DUMP-NEXT: ====== ===============================
71 # DUMP-NEXT: [ 0] 0x0f70 (0x0000000100000f70)
72 # DUMP-NEXT: [ 1] 0x0f90 (0x0000000100000f90)
75 # DUMP-NEXT: INDEX Offset
76 # DUMP-NEXT: ====== ==========
77 # DUMP-NEXT: [ 0] 0x0000006c
78 # DUMP-NEXT: [ 1] 0x0000008c
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
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"
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
108 --- !mach-o
119 - cmd: LC_UUID
121 uuid: F6241B52-09ED-3BBE-A6BC-8A7F5A4817CD
122 - cmd: LC_BUILD_VERSION
128 - cmd: LC_SYMTAB
134 - cmd: LC_SEGMENT_64
145 - cmd: LC_SEGMENT_64
157 - sectname: __text
170 - sectname: __unwind_info
183 - cmd: LC_SEGMENT_64
194 - cmd: LC_SEGMENT_64
206 - sectname: __debug_line
218 - sectname: __debug_pubnames
230 - sectname: __debug_pubtypes
242 - sectname: __debug_aranges
254 - sectname: __debug_info
266 - sectname: __debug_abbrev
278 - sectname: __debug_str
290 - sectname: __apple_names
303 - sectname: __apple_namespac
316 - sectname: __apple_types
329 - sectname: __apple_objc
344 - n_strx: 2
349 - n_strx: 11
354 - n_strx: 31
360 - ''
361 - ''
362 - __Z3fooi
363 - __mh_execute_header
364 - _main
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
380 - Table:
381 - Code: 0x00000001
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
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
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
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
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
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
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
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
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
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
527 - Attribute: DW_AT_type
528 Form: DW_FORM_ref_addr
529 - Code: 0x0000000C
533 - Attribute: DW_AT_type
534 Form: DW_FORM_ref_addr
536 - Length: 60
542 - Address: 0x0000000100000F70
544 - Address: 0x0000000100000F90
552 - DieOffset: 0x0000002A
554 - DieOffset: 0x0000002A
556 - DieOffset: 0x00000069
564 - DieOffset: 0x00000062
566 - DieOffset: 0x000000D8
569 - Version: 4
572 - AbbrCode: 0x00000001
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
584 - Value: 0x0000000100000F70
585 - Value: 0x0000000000000011
586 - Value: 0x0000000000000001
588 - Value: 0x0000000000000046
589 - AbbrCode: 0x00000003
591 - Value: 0x0000000000000002
593 - Value: 0x0000000000000056
594 - AbbrCode: 0x00000000
595 - AbbrCode: 0x00000004
597 - Value: 0x000000000000003F
598 - Value: 0x0000000000000047
599 - Value: 0x0000000000000001
600 - Value: 0x0000000000000001
601 - Value: 0x0000000000000062
602 - Value: 0x0000000000000001
603 - Value: 0x0000000000000001
604 - AbbrCode: 0x00000005
606 - Value: 0x000000000000004B
607 - Value: 0x0000000000000001
608 - Value: 0x0000000000000001
609 - Value: 0x0000000000000062
610 - AbbrCode: 0x00000000
611 - AbbrCode: 0x00000006
613 - Value: 0x000000000000004D
614 - Value: 0x0000000000000005
615 - Value: 0x0000000000000004
616 - AbbrCode: 0x00000007
618 - Value: 0x0000000100000F90
619 - Value: 0x0000000000000025
620 - Value: 0x0000000000000001
622 - Value: 0x0000000000000051
623 - Value: 0x0000000000000001
624 - Value: 0x0000000000000004
625 - Value: 0x0000000000000062
626 - Value: 0x0000000000000001
627 - AbbrCode: 0x00000008
629 - Value: 0x0000000000000002
631 - Value: 0x0000000000000056
632 - Value: 0x0000000000000001
633 - Value: 0x0000000000000004
634 - Value: 0x0000000000000062
635 - AbbrCode: 0x00000008
637 - Value: 0x0000000000000002
639 - Value: 0x000000000000005B
640 - Value: 0x0000000000000001
641 - Value: 0x0000000000000004
642 - Value: 0x00000000000000C9
643 - AbbrCode: 0x00000009
645 - Value: 0x0000000000000002
647 - Value: 0x000000000000004B
648 - Value: 0x0000000000000001
649 - Value: 0x0000000000000005
650 - Value: 0x0000000000000062
651 - AbbrCode: 0x0000000A
653 - Value: 0x0000000000000046
654 - Value: 0x0000000100000FAA
655 - Value: 0x0000000000000006
656 - Value: 0x0000000000000001
657 - Value: 0x0000000000000005
658 - AbbrCode: 0x00000003
660 - Value: 0x0000000000000002
662 - Value: 0x0000000000000056
663 - AbbrCode: 0x00000000
664 - AbbrCode: 0x00000000
665 - AbbrCode: 0x0000000B
667 - Value: 0x00000000000000CE
668 - AbbrCode: 0x0000000B
670 - Value: 0x00000000000000D3
671 - AbbrCode: 0x0000000C
673 - Value: 0x00000000000000D8
674 - AbbrCode: 0x00000006
676 - Value: 0x0000000000000060
677 - Value: 0x0000000000000006
678 - Value: 0x0000000000000001
679 - AbbrCode: 0x00000000
681 - Length: 102
692 - Name: main.cpp
697 - Opcode: DW_LNS_extended_op
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
724 Data: 0
725 - Opcode: DW_LNS_extended_op
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
764 Data: 0