brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 4a3ac03 Raw
29 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o2# RUN: llvm-dwarfdump -debug-loc %t.o | FileCheck %s3 4# This checks that we do not try to interpret DW_OP_call_ref if it is5# encountered in a location table.6 7# CHECK: .debug_loc contents:8# CHECK-NEXT: 0x00000000:9# CHECK-NEXT:   (0x0000000000000000, 0x0000000000000015): <decoding error> 9a ff 00 00 0010 11    .section .debug_loc, "", @progbits12    .quad 0                         # Beginning address offset13    .quad 0x15                      # Ending address offset14    .short .LDescrEnd-.LDescrBegin  # Location description length15.LDescrBegin:16    .byte 0x9a                      # DW_OP_call_ref17    .long 0xff18.LDescrEnd:19    .quad 0, 0                      # EOL entry20 21# A dummy CU to provide the parser of .debug_loc with the address size.22    .section .debug_info,"",@progbits23    .long .LCUEnd-.LCUBegin         # Length of Unit24.LCUBegin:25    .short 4                        # DWARF version number26    .long 0                         # Offset Into Abbrev. Section27    .byte 8                         # Address Size28.LCUEnd:29