llvm.org GIT mirror llvm / 2e2ff0a
[llvm-dwarfdump] - Cleanup of gnu_call_site.s. NFC. This change fixes values of test so that it passes -verify without errors and also adds comments. Test was introduced in D39119 and intention was to check that tool is able to dump few DW_*GNU_call_site* tags and attributes, so that change is NFC cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316428 91177308-0d34-0410-b5e6-96231b3b80d8 George Rimar 2 years ago
1 changed file(s) with 42 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
33 # CHECK: DW_TAG_subprogram
44 # CHECK-NEXT: DW_AT_external (true)
55 # CHECK-NEXT: DW_AT_name ("fn4")
6 # CHECK-NEXT: DW_AT_linkage_name ()
6 # CHECK-NEXT: DW_AT_linkage_name ("test")
77 # CHECK-NEXT: DW_AT_low_pc (0x0000000000000000)
88 # CHECK-NEXT: DW_AT_high_pc (0x00000000)
99 # CHECK-NEXT: DW_AT_frame_base (DW_OP_call_frame_cfa)
1111
1212 # CHECK: DW_TAG_GNU_call_site
1313 # CHECK-NEXT: DW_AT_low_pc (0x0000000000000000)
14 # CHECK-NEXT: DW_AT_abstract_origin (cu + 0x0001)
14 # CHECK-NEXT: DW_AT_abstract_origin (cu + 0x0021 "test")
1515
1616 # CHECK: DW_TAG_GNU_call_site_parameter
1717 # CHECK-NEXT: DW_AT_location (DW_OP_reg0 EAX)
3030 .long 0
3131 .long 0
3232 .long 0
33 .long 0
3433
3534 .uleb128 0xe # DW_TAG_subprogram [14]
3635 .string "fn4"
4241
4342 .uleb128 0x12 # DW_TAG_GNU_call_site [18]
4443 .long 0x0
45 .long 0x1
44 .long 0x21
4645
4746 .uleb128 0x13 # DW_TAG_GNU_call_site_parameter [19]
4847 .uleb128 0x1
5453 .byte 0
5554 .byte 0
5655
57 .section .debug_abbrev,"",@progbits
58 .uleb128 0x1
59 .uleb128 0x11
60 .byte 0x1 # [1]
61 .uleb128 0x25
62 .uleb128 0xe
63 .uleb128 0x13
64 .uleb128 0xb
65 .uleb128 0x3
66 .uleb128 0xe
67 .uleb128 0x1b
68 .uleb128 0xe
69 .uleb128 0x11
70 .uleb128 0x1
71 .uleb128 0x12
72 .uleb128 0x6
73 .uleb128 0x10
74 .uleb128 0x17
7556 .byte 0
7657 .byte 0
7758
78 .uleb128 0xe # [14]
79 .uleb128 0x2e
59 .section .debug_abbrev,"",@progbits
60 .uleb128 0x1
61 .uleb128 0x11 # DW_TAG_compile_unit, DW_CHILDREN_yes
8062 .byte 0x1
81 .uleb128 0x3f
63 .uleb128 0x25 # DW_AT_producer, DW_FORM_strp
64 .uleb128 0xe
65 .uleb128 0x13 # DW_AT_language, DW_FORM_data1
66 .uleb128 0xb
67 .uleb128 0x3 # DW_AT_name, DW_FORM_strp
68 .uleb128 0xe
69 .uleb128 0x1b # DW_AT_comp_dir, DW_FORM_strp
70 .uleb128 0xe
71 .uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
72 .uleb128 0x1
73 .uleb128 0x12 # DW_AT_high_pc, DW_FORM_data4
74 .uleb128 0x6
75 .byte 0
76 .byte 0
77
78 .uleb128 0xe # [14]
79 .uleb128 0x2e # DW_TAG_subprogram, DW_CHILDREN_yes
80 .byte 0x1
81 .uleb128 0x3f # DW_AT_external, DW_FORM_flag_present
8282 .uleb128 0x19
83 .uleb128 0x3
83 .uleb128 0x3 # DW_AT_name, DW_FORM_string
8484 .uleb128 0x8
85 .uleb128 0x6e
85 .uleb128 0x6e # DW_AT_linkage_name, DW_FORM_strp
8686 .uleb128 0xe
87 .uleb128 0x11
87 .uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
8888 .uleb128 0x1
89 .uleb128 0x12
89 .uleb128 0x12 # DW_AT_high_pc, DW_FORM_data4
9090 .uleb128 0x6
91 .uleb128 0x40
91 .uleb128 0x40 # DW_AT_frame_base, DW_FORM_exprloc
9292 .uleb128 0x18
93 .uleb128 0x2117
93 .uleb128 0x2117 # DW_AT_GNU_all_call_sites, DW_FORM_flag_present
9494 .uleb128 0x19
9595 .byte 0
9696 .byte 0
9797
98 .uleb128 0x12 # [18]
99 .uleb128 0x4109
98 .uleb128 0x12 # [18]
99 .uleb128 0x4109 # DW_TAG_GNU_call_site, DW_CHILDREN_yes
100100 .byte 0x1
101 .uleb128 0x11
101 .uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
102102 .uleb128 0x1
103 .uleb128 0x31
103 .uleb128 0x31 # DW_AT_abstract_origin, DW_FORM_ref4
104104 .uleb128 0x13
105105 .byte 0
106106 .byte 0
107107
108 .uleb128 0x13 # [19]
109 .uleb128 0x410a
108 .uleb128 0x13 # [19]
109 .uleb128 0x410a # DW_TAG_GNU_call_site_parameter, DW_CHILDREN_no
110110 .byte 0
111 .uleb128 0x2
111 .uleb128 0x2 # DW_AT_location, DW_FORM_exprloc
112112 .uleb128 0x18
113 .uleb128 0x2111
113 .uleb128 0x2111 # DW_AT_GNU_call_site_value, DW_FORM_exprloc
114114 .uleb128 0x18
115115 .byte 0
116116 .byte 0
117117 .byte 0
118
119 .section .debug_str,"MS",@progbits,1
120 .string "test"