71 lines · yaml
1# RUN: yaml2obj %s -o %t.o2# RUN: llvm-dwarfdump -debug-line -verify %t.o | FileCheck %s3 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--- !ELF8FileHeader:9 Class: ELFCLASS6410 Data: ELFDATA2LSB11 Type: ET_EXEC12DWARF:13 debug_str:14 - ''15 - /tmp/main.c16 debug_abbrev:17 - Table:18 - Code: 0x0000000119 Tag: DW_TAG_compile_unit20 Children: DW_CHILDREN_no21 Attributes:22 - Attribute: DW_AT_name23 Form: DW_FORM_strp24 - Attribute: DW_AT_stmt_list25 Form: DW_FORM_sec_offset26 debug_info:27 - Version: 428 AddrSize: 829 Entries:30 - AbbrCode: 0x0000000131 Values:32 - Value: 0x000000000000000133 - Value: 0x000000000000000034 debug_line:35 - Version: 236 MinInstLength: 137 DefaultIsStmt: 138 LineBase: 25139 LineRange: 1440 OpcodeBase: 1341 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]42 IncludeDirs:43 - /tmp44 Files:45 - Name: main.c46 DirIdx: 147 ModTime: 048 Length: 049 - Name: main.c50 DirIdx: 151 ModTime: 052 Length: 053 Opcodes:54 - Opcode: DW_LNS_extended_op55 ExtLen: 956 SubOpcode: DW_LNE_set_address57 Data: 409658 - Opcode: DW_LNS_advance_line59 SData: 960 Data: 409661 - Opcode: DW_LNS_copy62 Data: 409663 - Opcode: DW_LNS_advance_pc64 Data: 1665 - Opcode: DW_LNS_set_file66 Data: 167 - Opcode: DW_LNS_extended_op68 ExtLen: 169 SubOpcode: DW_LNE_end_sequence70 Data: 271