7 # extern int foo0(int);
8 # int main(int argc, char *argv[]) {
17 # Manually modified to use DW_FORM_addr for DW_AT_call_return_pc.
21 .file 0 "." "main.cpp" md5 0x02a00a8be50e50d669847461ae3d9851
22 .globl _Z3usev # -- Begin function _Z3usev
24 .type _Z3usev,@function
27 .loc 0 2 0 # main.cpp:2:0
30 .loc 0 3 3 prologue_end # main.cpp:3:3
32 .loc 0 4 1 # main.cpp:4:1
36 .size _Z3usev, .Lfunc_end0-_Z3usev
39 .globl main # -- Begin function main
44 .loc 0 7 0 # main.cpp:7:0
47 #DEBUG_VALUE: main:argc <- $edi
48 #DEBUG_VALUE: main:argv <- $rsi
51 .loc 0 8 14 prologue_end # main.cpp:8:14
54 .loc 0 8 9 is_stmt 0 # main.cpp:8:9
58 #DEBUG_VALUE: main:argc <- $edi
59 #DEBUG_VALUE: main:argv <- $rsi
61 .cfi_def_cfa_offset 16
63 #DEBUG_VALUE: x <- $edi
64 .loc 0 3 3 is_stmt 1 # main.cpp:3:3
67 .loc 0 11 16 # main.cpp:11:16
70 #DEBUG_VALUE: main:argc <- [DW_OP_LLVM_entry_value 1] $edi
73 #DEBUG_VALUE: main:argv <- [DW_OP_LLVM_entry_value 1] $rsi
74 .loc 0 11 14 is_stmt 0 # main.cpp:11:14
80 #DEBUG_VALUE: main:argc <- [DW_OP_LLVM_entry_value 1] $edi
81 #DEBUG_VALUE: main:argv <- [DW_OP_LLVM_entry_value 1] $rsi
82 .loc 0 14 1 is_stmt 1 # main.cpp:14:1
86 .size main, .Lfunc_end1-main
89 .type fooVar0,@object # @fooVar0
97 .section .debug_loclists,"",@progbits
98 .long .Ldebug_list_header_end0-.Ldebug_list_header_start0 # Length
99 .Ldebug_list_header_start0:
101 .byte 8 # Address size
102 .byte 0 # Segment selector size
103 .long 3 # Offset entry count
104 .Lloclists_table_base0:
105 .long .Ldebug_loc0-.Lloclists_table_base0
106 .long .Ldebug_loc1-.Lloclists_table_base0
107 .long .Ldebug_loc2-.Lloclists_table_base0
109 .byte 4 # DW_LLE_offset_pair
110 .uleb128 .Lfunc_begin1-.Lfunc_begin0 # starting offset
111 .uleb128 .Ltmp6-.Lfunc_begin0 # ending offset
112 .byte 1 # Loc expr size
113 .byte 85 # super-register DW_OP_reg5
114 .byte 4 # DW_LLE_offset_pair
115 .uleb128 .Ltmp6-.Lfunc_begin0 # starting offset
116 .uleb128 .Lfunc_end1-.Lfunc_begin0 # ending offset
117 .byte 4 # Loc expr size
118 .byte 163 # DW_OP_entry_value
120 .byte 85 # super-register DW_OP_reg5
121 .byte 159 # DW_OP_stack_value
122 .byte 0 # DW_LLE_end_of_list
124 .byte 4 # DW_LLE_offset_pair
125 .uleb128 .Lfunc_begin1-.Lfunc_begin0 # starting offset
126 .uleb128 .Ltmp7-.Lfunc_begin0 # ending offset
127 .byte 1 # Loc expr size
128 .byte 84 # DW_OP_reg4
129 .byte 4 # DW_LLE_offset_pair
130 .uleb128 .Ltmp7-.Lfunc_begin0 # starting offset
131 .uleb128 .Lfunc_end1-.Lfunc_begin0 # ending offset
132 .byte 4 # Loc expr size
133 .byte 163 # DW_OP_entry_value
135 .byte 84 # DW_OP_reg4
136 .byte 159 # DW_OP_stack_value
137 .byte 0 # DW_LLE_end_of_list
139 .byte 4 # DW_LLE_offset_pair
140 .uleb128 .Ltmp4-.Lfunc_begin0 # starting offset
141 .uleb128 .Ltmp6-.Lfunc_begin0 # ending offset
142 .byte 1 # Loc expr size
143 .byte 85 # super-register DW_OP_reg5
144 .byte 0 # DW_LLE_end_of_list
145 .Ldebug_list_header_end0:
146 .section .debug_abbrev,"",@progbits
147 .byte 1 # Abbreviation Code
148 .byte 17 # DW_TAG_compile_unit
149 .byte 1 # DW_CHILDREN_yes
150 .byte 37 # DW_AT_producer
151 .byte 37 # DW_FORM_strx1
152 .byte 19 # DW_AT_language
153 .byte 5 # DW_FORM_data2
155 .byte 37 # DW_FORM_strx1
156 .byte 114 # DW_AT_str_offsets_base
157 .byte 23 # DW_FORM_sec_offset
158 .byte 16 # DW_AT_stmt_list
159 .byte 23 # DW_FORM_sec_offset
160 .byte 27 # DW_AT_comp_dir
161 .byte 37 # DW_FORM_strx1
162 .byte 17 # DW_AT_low_pc
163 .byte 27 # DW_FORM_addrx
164 .byte 18 # DW_AT_high_pc
165 .byte 6 # DW_FORM_data4
166 .byte 115 # DW_AT_addr_base
167 .byte 23 # DW_FORM_sec_offset
168 .ascii "\214\001" # DW_AT_loclists_base
169 .byte 23 # DW_FORM_sec_offset
172 .byte 2 # Abbreviation Code
173 .byte 52 # DW_TAG_variable
174 .byte 0 # DW_CHILDREN_no
176 .byte 37 # DW_FORM_strx1
177 .byte 73 # DW_AT_type
178 .byte 19 # DW_FORM_ref4
179 .byte 63 # DW_AT_external
180 .byte 25 # DW_FORM_flag_present
181 .byte 58 # DW_AT_decl_file
182 .byte 11 # DW_FORM_data1
183 .byte 59 # DW_AT_decl_line
184 .byte 11 # DW_FORM_data1
185 .byte 2 # DW_AT_location
186 .byte 24 # DW_FORM_exprloc
189 .byte 3 # Abbreviation Code
190 .byte 36 # DW_TAG_base_type
191 .byte 0 # DW_CHILDREN_no
193 .byte 37 # DW_FORM_strx1
194 .byte 62 # DW_AT_encoding
195 .byte 11 # DW_FORM_data1
196 .byte 11 # DW_AT_byte_size
197 .byte 11 # DW_FORM_data1
200 .byte 4 # Abbreviation Code
201 .byte 46 # DW_TAG_subprogram
202 .byte 0 # DW_CHILDREN_no
203 .byte 17 # DW_AT_low_pc
204 .byte 27 # DW_FORM_addrx
205 .byte 18 # DW_AT_high_pc
206 .byte 6 # DW_FORM_data4
207 .byte 64 # DW_AT_frame_base
208 .byte 24 # DW_FORM_exprloc
209 .byte 122 # DW_AT_call_all_calls
210 .byte 25 # DW_FORM_flag_present
211 .byte 49 # DW_AT_abstract_origin
212 .byte 19 # DW_FORM_ref4
215 .byte 5 # Abbreviation Code
216 .byte 46 # DW_TAG_subprogram
217 .byte 0 # DW_CHILDREN_no
218 .byte 110 # DW_AT_linkage_name
219 .byte 37 # DW_FORM_strx1
221 .byte 37 # DW_FORM_strx1
222 .byte 58 # DW_AT_decl_file
223 .byte 11 # DW_FORM_data1
224 .byte 59 # DW_AT_decl_line
225 .byte 11 # DW_FORM_data1
226 .byte 63 # DW_AT_external
227 .byte 25 # DW_FORM_flag_present
228 .byte 32 # DW_AT_inline
229 .byte 33 # DW_FORM_implicit_const
233 .byte 6 # Abbreviation Code
234 .byte 46 # DW_TAG_subprogram
235 .byte 1 # DW_CHILDREN_yes
236 .byte 17 # DW_AT_low_pc
237 .byte 27 # DW_FORM_addrx
238 .byte 18 # DW_AT_high_pc
239 .byte 6 # DW_FORM_data4
240 .byte 64 # DW_AT_frame_base
241 .byte 24 # DW_FORM_exprloc
242 .byte 122 # DW_AT_call_all_calls
243 .byte 25 # DW_FORM_flag_present
245 .byte 37 # DW_FORM_strx1
246 .byte 58 # DW_AT_decl_file
247 .byte 11 # DW_FORM_data1
248 .byte 59 # DW_AT_decl_line
249 .byte 11 # DW_FORM_data1
250 .byte 73 # DW_AT_type
251 .byte 19 # DW_FORM_ref4
252 .byte 63 # DW_AT_external
253 .byte 25 # DW_FORM_flag_present
256 .byte 7 # Abbreviation Code
257 .byte 5 # DW_TAG_formal_parameter
258 .byte 0 # DW_CHILDREN_no
259 .byte 2 # DW_AT_location
260 .byte 34 # DW_FORM_loclistx
262 .byte 37 # DW_FORM_strx1
263 .byte 58 # DW_AT_decl_file
264 .byte 11 # DW_FORM_data1
265 .byte 59 # DW_AT_decl_line
266 .byte 11 # DW_FORM_data1
267 .byte 73 # DW_AT_type
268 .byte 19 # DW_FORM_ref4
271 .byte 8 # Abbreviation Code
272 .byte 11 # DW_TAG_lexical_block
273 .byte 1 # DW_CHILDREN_yes
274 .byte 17 # DW_AT_low_pc
275 .byte 27 # DW_FORM_addrx
276 .byte 18 # DW_AT_high_pc
277 .byte 6 # DW_FORM_data4
280 .byte 9 # Abbreviation Code
281 .byte 52 # DW_TAG_variable
282 .byte 0 # DW_CHILDREN_no
283 .byte 2 # DW_AT_location
284 .byte 34 # DW_FORM_loclistx
286 .byte 37 # DW_FORM_strx1
287 .byte 58 # DW_AT_decl_file
288 .byte 11 # DW_FORM_data1
289 .byte 59 # DW_AT_decl_line
290 .byte 11 # DW_FORM_data1
291 .byte 73 # DW_AT_type
292 .byte 19 # DW_FORM_ref4
295 .byte 10 # Abbreviation Code
296 .byte 29 # DW_TAG_inlined_subroutine
297 .byte 0 # DW_CHILDREN_no
298 .byte 49 # DW_AT_abstract_origin
299 .byte 19 # DW_FORM_ref4
300 .byte 17 # DW_AT_low_pc
301 .byte 27 # DW_FORM_addrx
302 .byte 18 # DW_AT_high_pc
303 .byte 6 # DW_FORM_data4
304 .byte 88 # DW_AT_call_file
305 .byte 11 # DW_FORM_data1
306 .byte 89 # DW_AT_call_line
307 .byte 11 # DW_FORM_data1
308 .byte 87 # DW_AT_call_column
309 .byte 11 # DW_FORM_data1
312 .byte 11 # Abbreviation Code
313 .byte 72 # DW_TAG_call_site
314 .byte 1 # DW_CHILDREN_yes
315 .byte 127 # DW_AT_call_origin
316 .byte 19 # DW_FORM_ref4
317 .byte 125 # DW_AT_call_return_pc
318 .byte 1 # DW_FORM_addr --> Manually modified
321 .byte 12 # Abbreviation Code
322 .byte 73 # DW_TAG_call_site_parameter
323 .byte 0 # DW_CHILDREN_no
324 .byte 2 # DW_AT_location
325 .byte 24 # DW_FORM_exprloc
326 .byte 126 # DW_AT_call_value
327 .byte 24 # DW_FORM_exprloc
330 .byte 13 # Abbreviation Code
331 .byte 46 # DW_TAG_subprogram
332 .byte 1 # DW_CHILDREN_yes
333 .byte 110 # DW_AT_linkage_name
334 .byte 37 # DW_FORM_strx1
336 .byte 37 # DW_FORM_strx1
337 .byte 58 # DW_AT_decl_file
338 .byte 11 # DW_FORM_data1
339 .byte 59 # DW_AT_decl_line
340 .byte 11 # DW_FORM_data1
341 .byte 73 # DW_AT_type
342 .byte 19 # DW_FORM_ref4
343 .byte 60 # DW_AT_declaration
344 .byte 25 # DW_FORM_flag_present
345 .byte 63 # DW_AT_external
346 .byte 25 # DW_FORM_flag_present
349 .byte 14 # Abbreviation Code
350 .byte 5 # DW_TAG_formal_parameter
351 .byte 0 # DW_CHILDREN_no
352 .byte 73 # DW_AT_type
353 .byte 19 # DW_FORM_ref4
356 .byte 15 # Abbreviation Code
357 .byte 15 # DW_TAG_pointer_type
358 .byte 0 # DW_CHILDREN_no
359 .byte 73 # DW_AT_type
360 .byte 19 # DW_FORM_ref4
364 .section .debug_info,"",@progbits
366 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
368 .short 5 # DWARF version number
369 .byte 1 # DWARF Unit Type
370 .byte 8 # Address Size (in bytes)
371 .long .debug_abbrev # Offset Into Abbrev. Section
372 .byte 1 # Abbrev [1] 0xc:0xa4 DW_TAG_compile_unit
373 .byte 0 # DW_AT_producer
374 .short 33 # DW_AT_language
376 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
377 .long .Lline_table_start0 # DW_AT_stmt_list
378 .byte 2 # DW_AT_comp_dir
379 .byte 1 # DW_AT_low_pc
380 .long .Lfunc_end1-.Lfunc_begin0 # DW_AT_high_pc
381 .long .Laddr_table_base0 # DW_AT_addr_base
382 .long .Lloclists_table_base0 # DW_AT_loclists_base
383 .byte 2 # Abbrev [2] 0x27:0xb DW_TAG_variable
385 .long 50 # DW_AT_type
387 .byte 0 # DW_AT_decl_file
388 .byte 1 # DW_AT_decl_line
389 .byte 2 # DW_AT_location
392 .byte 3 # Abbrev [3] 0x32:0x4 DW_TAG_base_type
394 .byte 5 # DW_AT_encoding
395 .byte 4 # DW_AT_byte_size
396 .byte 4 # Abbrev [4] 0x36:0xc DW_TAG_subprogram
397 .byte 1 # DW_AT_low_pc
398 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
399 .byte 1 # DW_AT_frame_base
401 # DW_AT_call_all_calls
402 .long 66 # DW_AT_abstract_origin
403 .byte 5 # Abbrev [5] 0x42:0x5 DW_TAG_subprogram
404 .byte 5 # DW_AT_linkage_name
406 .byte 0 # DW_AT_decl_file
407 .byte 2 # DW_AT_decl_line
410 .byte 6 # Abbrev [6] 0x47:0x4b DW_TAG_subprogram
411 .byte 2 # DW_AT_low_pc
412 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
413 .byte 1 # DW_AT_frame_base
415 # DW_AT_call_all_calls
417 .byte 0 # DW_AT_decl_file
418 .byte 7 # DW_AT_decl_line
419 .long 50 # DW_AT_type
421 .byte 7 # Abbrev [7] 0x56:0x9 DW_TAG_formal_parameter
422 .byte 0 # DW_AT_location
423 .byte 10 # DW_AT_name
424 .byte 0 # DW_AT_decl_file
425 .byte 7 # DW_AT_decl_line
426 .long 50 # DW_AT_type
427 .byte 7 # Abbrev [7] 0x5f:0x9 DW_TAG_formal_parameter
428 .byte 1 # DW_AT_location
429 .byte 11 # DW_AT_name
430 .byte 0 # DW_AT_decl_file
431 .byte 7 # DW_AT_decl_line
432 .long 162 # DW_AT_type
433 .byte 8 # Abbrev [8] 0x68:0x1d DW_TAG_lexical_block
434 .byte 3 # DW_AT_low_pc
435 .long .Ltmp8-.Ltmp4 # DW_AT_high_pc
436 .byte 9 # Abbrev [9] 0x6e:0x9 DW_TAG_variable
437 .byte 2 # DW_AT_location
438 .byte 13 # DW_AT_name
439 .byte 0 # DW_AT_decl_file
440 .byte 9 # DW_AT_decl_line
441 .long 50 # DW_AT_type
442 .byte 10 # Abbrev [10] 0x77:0xd DW_TAG_inlined_subroutine
443 .long 66 # DW_AT_abstract_origin
444 .byte 3 # DW_AT_low_pc
445 .long .Ltmp5-.Ltmp4 # DW_AT_high_pc
446 .byte 0 # DW_AT_call_file
447 .byte 10 # DW_AT_call_line
448 .byte 5 # DW_AT_call_column
449 .byte 0 # End Of Children Mark
450 .byte 11 # Abbrev [11] 0x85:0xc DW_TAG_call_site
451 .long 146 # DW_AT_call_origin
452 .quad .Ltmp7 # DW_AT_call_return_pc --> Manually modified
453 .byte 12 # Abbrev [12] 0x8b:0x5 DW_TAG_call_site_parameter
454 .byte 1 # DW_AT_location
456 .byte 1 # DW_AT_call_value
458 .byte 0 # End Of Children Mark
459 .byte 0 # End Of Children Mark
460 .byte 13 # Abbrev [13] 0x92:0xf DW_TAG_subprogram
461 .byte 7 # DW_AT_linkage_name
463 .byte 0 # DW_AT_decl_file
464 .byte 6 # DW_AT_decl_line
465 .long 50 # DW_AT_type
468 .byte 14 # Abbrev [14] 0x9b:0x5 DW_TAG_formal_parameter
469 .long 50 # DW_AT_type
470 .byte 0 # End Of Children Mark
471 .byte 15 # Abbrev [15] 0xa1:0x5 DW_TAG_pointer_type
472 .long 162 # DW_AT_type
473 .byte 15 # Abbrev [15] 0xa6:0x5 DW_TAG_pointer_type
474 .long 168 # DW_AT_type
475 .byte 3 # Abbrev [3] 0xab:0x4 DW_TAG_base_type
476 .byte 12 # DW_AT_name
477 .byte 6 # DW_AT_encoding
478 .byte 1 # DW_AT_byte_size
479 .byte 0 # End Of Children Mark
481 .section .debug_str_offsets,"",@progbits
482 .long 60 # Length of String Offsets Set
486 .section .debug_str,"MS",@progbits,1
488 .asciz "clang version 15.0.0" # string offset=0
490 .asciz "main.cpp" # string offset=134
492 .asciz "." # string offset=143
494 .asciz "fooVar0" # string offset=191
496 .asciz "int" # string offset=199
498 .asciz "_Z3usev" # string offset=203
500 .asciz "use" # string offset=211
502 .asciz "_Z4foo0i" # string offset=215
504 .asciz "foo0" # string offset=224
506 .asciz "main" # string offset=229
508 .asciz "argc" # string offset=234
510 .asciz "argv" # string offset=239
512 .asciz "char" # string offset=244
514 .asciz "x" # string offset=249
515 .section .debug_str_offsets,"",@progbits
526 .long .Linfo_string10
527 .long .Linfo_string11
528 .long .Linfo_string12
529 .long .Linfo_string13
530 .section .debug_addr,"",@progbits
531 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
533 .short 5 # DWARF version number
534 .byte 8 # Address size
535 .byte 0 # Segment selector size
543 .ident "clang version 15.0.0"
544 .section ".note.GNU-stack","",@progbits
546 .section .debug_line,"",@progbits