1# RUN: yaml2obj %s -o %t.o 2# RUN: not llvm-dwarfdump -debug-line -verify %t.o | FileCheck %s 3 4# CHECK: Verifying .debug_line... 5# CHECK-NEXT: error: .debug_line[0x00000000].prologue.file_names[1].dir_idx contains an invalid index: 2 6 7--- !ELF 8FileHeader: 9 Class: ELFCLASS64 10 Data: ELFDATA2LSB 11 Type: ET_EXEC 12DWARF: 13 debug_str: 14 - '' 15 - /tmp/main.c 16 debug_abbrev: 17 - Table: 18 - Code: 0x00000001 19 Tag: DW_TAG_compile_unit 20 Children: DW_CHILDREN_no 21 Attributes: 22 - Attribute: DW_AT_name 23 Form: DW_FORM_strp 24 - Attribute: DW_AT_stmt_list 25 Form: DW_FORM_sec_offset 26 debug_info: 27 - Version: 4 28 AddrSize: 8 29 Entries: 30 - AbbrCode: 0x00000001 31 Values: 32 - Value: 0x0000000000000001 33 - Value: 0x0000000000000000 34 debug_line: 35 - Version: 2 36 MinInstLength: 1 37 DefaultIsStmt: 1 38 LineBase: 251 39 LineRange: 14 40 OpcodeBase: 13 41 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ] 42 IncludeDirs: 43 - /tmp 44 Files: 45 - Name: main.c 46 DirIdx: 2 47 ModTime: 0 48 Length: 0 49 Opcodes: 50 - Opcode: DW_LNS_extended_op 51 ExtLen: 9 52 SubOpcode: DW_LNE_set_address 53 Data: 4096 54 - Opcode: DW_LNS_advance_line 55 SData: 9 56 Data: 4096 57 - Opcode: DW_LNS_copy 58 Data: 4096 59 - Opcode: DW_LNS_advance_pc 60 Data: 16 61 - Opcode: DW_LNS_set_file 62 Data: 1 63 - Opcode: DW_LNS_extended_op 64 ExtLen: 1 65 SubOpcode: DW_LNE_end_sequence 66 Data: 1 67