brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 2a779c0 Raw
44 lines · plain
1## Test that we can dump the (intact) prologue of a large table which was2## truncated. Also, make sure we don't get confused by a DWARF64 length which3## matches one of the reserved initial length values.4 5# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s >%t6# RUN: llvm-dwarfdump %t -debug-line 2>&1 | FileCheck %s7 8# CHECK: debug_line[0x00000000]9# CHECK-NEXT: Line table prologue:10# CHECK-NEXT:     total_length: 0x00000000fffffff011# CHECK-NEXT:           format: DWARF6412# CHECK-NEXT:          version: 413# CHECK-NEXT:  prologue_length: 0x000000000000001614# CHECK:        file_names[ 1]:15# CHECK-NEXT:             name: "file1"16# CHECK-NEXT:        dir_index: 017# CHECK-NEXT:         mod_time: 0x0000000018# CHECK-NEXT:           length: 0x0000000019# CHECK-NEXT: warning: line table program with offset 0x00000000 has length 0xfffffffc but only 0x0000003a bytes are available20 21# CHECK:      0x000000000badbeef      1      0      1   0             0       0  is_stmt end_sequence22 23.section .debug_line,"",@progbits24.long   0xffffffff      # Length of Unit (DWARF-64 format)25.quad   0xfffffff026.short  4               # DWARF version number27.quad   .Lprologue1_end-.Lprologue1_start # Length of Prologue28.Lprologue1_start:29.byte   1               # Minimum Instruction Length30.byte   1               # Maximum Operations per Instruction31.byte   1               # Default is_stmt32.byte   -5              # Line Base33.byte   14              # Line Range34.byte   1               # Opcode Base35.asciz "dir1"           # Include table36.byte   037.asciz "file1"          # File table38.byte   0, 0, 039.byte   040.Lprologue1_end:41.byte   0, 9, 2         # DW_LNE_set_address42.quad   0x0badbeef43.byte   0, 1, 1         # DW_LNE_end_sequence44