1# RUN: yaml2obj %s -o %t.o 2# RUN: llvm-dwarfdump -debug-line -verify %t.o | FileCheck %s 3 4# CHECK: Verifying .debug_line... 5# CHECK-NEXT: warning: .debug_line[0x00000000].prologue.file_names[2] is a duplicate of file_names[1] 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: 1 47 ModTime: 0 48 Length: 0 49 - Name: main.c 50 DirIdx: 1 51 ModTime: 0 52 Length: 0 53 Opcodes: 54 - Opcode: DW_LNS_extended_op 55 ExtLen: 9 56 SubOpcode: DW_LNE_set_address 57 Data: 4096 58 - Opcode: DW_LNS_advance_line 59 SData: 9 60 Data: 4096 61 - Opcode: DW_LNS_copy 62 Data: 4096 63 - Opcode: DW_LNS_advance_pc 64 Data: 16 65 - Opcode: DW_LNS_set_file 66 Data: 1 67 - Opcode: DW_LNS_extended_op 68 ExtLen: 1 69 SubOpcode: DW_LNE_end_sequence 70 Data: 2 71