1
1
.text
2
- .file "main .c"
2
+ .file "subprogram_ranges .c"
3
3
.globl main # -- Begin function main
4
4
.p2align 4 , 0x90
5
5
.type main,@function
6
6
main: # @main
7
7
.Lfunc_begin0:
8
- .file 1 "/usr/local/google/home/blaikie/dev/scratch" "main .c"
9
- .loc 1 1 0 # main .c:1 :0
8
+ .file 1 "/usr/local/google/home/blaikie/dev/scratch" "subprogram_ranges .c"
9
+ .loc 1 2 0 # subprogram_ranges .c:2 :0
10
10
.cfi_startproc
11
11
# %bb.0: # %entry
12
- pushq %rbp
13
- .cfi_def_cfa_offset 16
14
- .cfi_offset %rbp , -16
15
- movq %rsp , %rbp
16
- .cfi_def_cfa_register %rbp
17
- xorl %eax , %eax
12
+ #DEBUG_VALUE: main:var <- 3
13
+ .loc 1 4 5 prologue_end # subprogram_ranges.c:4:5
14
+ movl $1 , i(%rip )
18
15
.Ltmp0:
19
- .loc 1 2 7 prologue_end # main.c:2:7
20
- movl $3 , -4 ( %rbp )
21
- .loc 1 3 1 # main.c:3:1
22
- popq %rbp
23
- .cfi_def_cfa %rsp , 8
16
+ #DEBUG_VALUE: main:var <- 5
17
+ .loc 1 6 5 # subprogram_ranges.c:6:5
18
+ movl $2 , i( %rip )
19
+ .loc 1 7 1 # subprogram_ranges.c:7:1
20
+ xorl %eax , %eax
24
21
retq
25
22
.Ltmp1:
26
23
.Lfunc_end0:
27
24
.size main, .Lfunc_end0-main
28
25
.cfi_endproc
29
26
# -- End function
27
+ .type i,@object # @i
28
+ .bss
29
+ .globl i
30
+ .p2align 2
31
+ i:
32
+ .long 0 # 0x0
33
+ .size i, 4
34
+
35
+ .section .debug_loc,"",@progbits
36
+ .Ldebug_loc0:
37
+ .quad .Lfunc_begin0-.Lfunc_begin0
38
+ .quad .Ltmp0-.Lfunc_begin0
39
+ .short 3 # Loc expr size
40
+ .byte 17 # DW_OP_consts
41
+ .byte 3 # 3
42
+ .byte 159 # DW_OP_stack_value
43
+ .quad .Ltmp0-.Lfunc_begin0
44
+ .quad .Lfunc_end0-.Lfunc_begin0
45
+ .short 3 # Loc expr size
46
+ .byte 17 # DW_OP_consts
47
+ .byte 5 # 5
48
+ .byte 159 # DW_OP_stack_value
49
+ .quad 0
50
+ .quad 0
30
51
.section .debug_abbrev,"",@progbits
31
52
.byte 1 # Abbreviation Code
32
53
.byte 17 # DW_TAG_compile_unit
@@ -54,6 +75,8 @@ main: # @main
54
75
.byte 23 # DW_FORM_sec_offset
55
76
.byte 64 # DW_AT_frame_base
56
77
.byte 24 # DW_FORM_exprloc
78
+ .ascii "\227B" # DW_AT_GNU_all_call_sites
79
+ .byte 25 # DW_FORM_flag_present
57
80
.byte 3 # DW_AT_name
58
81
.byte 14 # DW_FORM_strp
59
82
.byte 58 # DW_AT_decl_file
@@ -70,7 +93,7 @@ main: # @main
70
93
.byte 52 # DW_TAG_variable
71
94
.byte 0 # DW_CHILDREN_no
72
95
.byte 2 # DW_AT_location
73
- .byte 24 # DW_FORM_exprloc
96
+ .byte 23 # DW_FORM_sec_offset
74
97
.byte 3 # DW_AT_name
75
98
.byte 14 # DW_FORM_strp
76
99
.byte 58 # DW_AT_decl_file
@@ -100,33 +123,32 @@ main: # @main
100
123
.short 4 # DWARF version number
101
124
.long .debug_abbrev # Offset Into Abbrev. Section
102
125
.byte 8 # Address Size (in bytes)
103
- .byte 1 # Abbrev [1] 0xb:0x47 DW_TAG_compile_unit
126
+ .byte 1 # Abbrev [1] 0xb:0x48 DW_TAG_compile_unit
104
127
.long .Linfo_string0 # DW_AT_producer
105
128
.short 12 # DW_AT_language
106
129
.long .Linfo_string1 # DW_AT_name
107
130
.long .Lline_table_start0 # DW_AT_stmt_list
108
131
.long .Linfo_string2 # DW_AT_comp_dir
109
132
.quad .Lfunc_begin0 # DW_AT_low_pc
110
133
.long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
111
- .byte 2 # Abbrev [2] 0x2a:0x20 DW_TAG_subprogram
134
+ .byte 2 # Abbrev [2] 0x2a:0x21 DW_TAG_subprogram
112
135
.long .Ldebug_ranges0 # DW_AT_ranges
113
136
.byte 1 # DW_AT_frame_base
114
- .byte 86
137
+ .byte 87
138
+ # DW_AT_GNU_all_call_sites
115
139
.long .Linfo_string3 # DW_AT_name
116
140
.byte 1 # DW_AT_decl_file
117
- .byte 1 # DW_AT_decl_line
118
- .long 74 # DW_AT_type
141
+ .byte 2 # DW_AT_decl_line
142
+ .long 75 # DW_AT_type
119
143
# DW_AT_external
120
- .byte 3 # Abbrev [3] 0x3b:0xe DW_TAG_variable
121
- .byte 2 # DW_AT_location
122
- .byte 145
123
- .byte 124
144
+ .byte 3 # Abbrev [3] 0x3b:0xf DW_TAG_variable
145
+ .long .Ldebug_loc0 # DW_AT_location
124
146
.long .Linfo_string5 # DW_AT_name
125
147
.byte 1 # DW_AT_decl_file
126
- .byte 2 # DW_AT_decl_line
127
- .long 74 # DW_AT_type
148
+ .byte 3 # DW_AT_decl_line
149
+ .long 75 # DW_AT_type
128
150
.byte 0 # End Of Children Mark
129
- .byte 4 # Abbrev [4] 0x4a :0x7 DW_TAG_base_type
151
+ .byte 4 # Abbrev [4] 0x4b :0x7 DW_TAG_base_type
130
152
.long .Linfo_string4 # DW_AT_name
131
153
.byte 5 # DW_AT_encoding
132
154
.byte 4 # DW_AT_byte_size
@@ -140,20 +162,20 @@ main: # @main
140
162
.quad 0
141
163
.section .debug_str,"MS" ,@progbits ,1
142
164
.Linfo_string0:
143
- .asciz "clang version 12.0.0 ([email protected] :llvm/llvm-project.git 1c15aa171b2f67d9198a8498945cbdb936c0cd3b )" # string offset=0
165
+ .asciz "clang version 12.0.0 ([email protected] :llvm/llvm-project.git 439e8f6c05584c36ea3f79d9b83a78098d40e629 )" # string offset=0
144
166
.Linfo_string1:
145
- .asciz "main .c" # string offset=101
167
+ .asciz "subprogram_ranges .c" # string offset=101
146
168
.Linfo_string2:
147
- .asciz "/usr/local/google/home/blaikie/dev/scratch" # string offset=108
169
+ .asciz "/usr/local/google/home/blaikie/dev/scratch" # string offset=121
148
170
.Linfo_string3:
149
- .asciz "main" # string offset=151
171
+ .asciz "main" # string offset=164
150
172
.Linfo_string4:
151
- .asciz "int" # string offset=156
173
+ .asciz "int" # string offset=169
152
174
.Linfo_string5:
153
- .asciz "var" # string offset=160
154
- .ident "clang version 12.0.0 ([email protected] :llvm/llvm-project.git 1c15aa171b2f67d9198a8498945cbdb936c0cd3b )"
175
+ .asciz "var" # string offset=173
176
+ .ident "clang version 12.0.0 ([email protected] :llvm/llvm-project.git 439e8f6c05584c36ea3f79d9b83a78098d40e629 )"
155
177
.section ".note.GNU-stack" ,"",@progbits
156
178
.addrsig
179
+ .addrsig_sym i
157
180
.section .debug_line,"",@progbits
158
181
.Lline_table_start0:
159
-
0 commit comments