48 lines · plain
1# RUN: llvm-mc -filetype obj -triple x86_64-pc-linux %s -o %t.o2# RUN: llvm-dwarfdump -debug-line %t.o | FileCheck %s3 4# CHECK: Address Line Column File ISA Discriminator OpIndex Flags5# CHECK-NEXT: ------------------ ------ ------ ------ --- ------------- ------- -------------6# CHECK-NEXT: 0x0000000000000000 1 0 1 0 1 0 is_stmt7# CHECK-NEXT: 0x0000000000000001 2 0 1 0 0 0 is_stmt8# CHECK-NEXT: 0x0000000000000001 2 0 1 0 0 0 is_stmt end_sequence9 10.section .debug_line,"",@progbits11.Line_table_start0:12 .long .Line_table_end0-.Line_table_start0-4 # Length of Unit13 .short 5 # DWARF version number14 .byte 8 # Address Size15 .byte 0 # Segment Selector Size16 .long .Line_table_header_end0-.Line_table_params0 # Length of Prologue17.Line_table_params0:18 .byte 1 # Minimum Instruction Length19 .byte 1 # Maximum Operations per Instruction20 .byte 1 # Default is_stmt21 .byte -5 # Line Base22 .byte 14 # Line Range23 .byte 13 # Opcode Base24 .byte 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 # Standard Opcode Lengths25 # Directory table format26 .byte 1 # One element per directory entry27 .byte 1 # DW_LNCT_path28 .byte 0x08 # DW_FORM_string29 # Directory table entries30 .byte 1 # 1 directory31 .asciz "/tmp"32 # File table format33 .byte 2 # 2 elements per file entry34 .byte 1 # DW_LNCT_path35 .byte 0x08 # DW_FORM_string36 .byte 2 # DW_LNCT_directory_index37 .byte 0x0b # DW_FORM_data138 # File table entries39 .byte 1 # 1 file40 .asciz "a.c"41 .byte 042.Line_table_header_end0:43 .byte 0,2,4,1 # DW_LNE_set_discriminator 144 .byte 1 # DW_LNS_copy45 .byte 33 # address += 1, line += 146 .byte 0,1,1 # DW_LNE_end_sequence47.Line_table_end0:48