109 lines · yaml
1## Test converting DWARF using relative path2 3# RUN: yaml2obj %s -o %t4# RUN: llvm-gsymutil --convert %t -o %t.gsym --segment-size=100000 --quiet 2>&1 | FileCheck %s --check-prefix=CONVERT5 6# CONVERT: Input file: {{.*\.yaml\.tmp}}7# CONVERT: Output file (x86_64): {{.*\.yaml\.tmp\.gsym}}8# CONVERT: Pruned 0 functions, ended with 1 total9 10--- !ELF11FileHeader:12 Class: ELFCLASS6413 Data: ELFDATA2LSB14 Type: ET_EXEC15 Machine: EM_X86_6416DWARF:17 debug_str:18 - ''19 - main.cpp20 - foo21 debug_abbrev:22 - ID: 023 Table:24 - Code: 0x125 Tag: DW_TAG_compile_unit26 Children: DW_CHILDREN_yes27 Attributes:28 - Attribute: DW_AT_name29 Form: DW_FORM_strp30 - Attribute: DW_AT_language31 Form: DW_FORM_udata32 - Attribute: DW_AT_stmt_list33 Form: DW_FORM_sec_offset34 - Code: 0x235 Tag: DW_TAG_subprogram36 Children: DW_CHILDREN_no37 Attributes:38 - Attribute: DW_AT_name39 Form: DW_FORM_strp40 - Attribute: DW_AT_low_pc41 Form: DW_FORM_addr42 - Attribute: DW_AT_high_pc43 Form: DW_FORM_addr44 debug_info:45 - Length: 0x2746 Version: 447 AbbrevTableID: 048 AbbrOffset: 0x049 AddrSize: 850 Entries:51 - AbbrCode: 0x152 Values:53 - Value: 0x154 - Value: 0x255 - Value: 0x056 - AbbrCode: 0x257 Values:58 - Value: 0xA59 - Value: 0x100060 - Value: 0x105061 - AbbrCode: 0x062 debug_line:63 - Length: 6664 Version: 265 PrologueLength: 3166 MinInstLength: 167 DefaultIsStmt: 168 LineBase: 25169 LineRange: 1470 OpcodeBase: 1371 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]72 Files:73 - Name: main.cpp74 DirIdx: 075 ModTime: 076 Length: 077 Opcodes:78 - Opcode: DW_LNS_extended_op79 ExtLen: 980 SubOpcode: DW_LNE_set_address81 Data: 409682 - Opcode: DW_LNS_advance_line83 SData: 984 Data: 085 - Opcode: DW_LNS_copy86 Data: 087 - Opcode: DW_LNS_advance_pc88 Data: 1689 - Opcode: DW_LNS_advance_line90 SData: 191 Data: 092 - Opcode: DW_LNS_copy93 Data: 094 - Opcode: DW_LNS_advance_line95 SData: 196 Data: 097 - Opcode: DW_LNS_copy98 Data: 099 - Opcode: DW_LNS_advance_pc100 Data: 64101 - Opcode: DW_LNS_advance_line102 SData: 1103 Data: 0104 - Opcode: DW_LNS_extended_op105 ExtLen: 1106 SubOpcode: DW_LNE_end_sequence107 Data: 0108...109