171 lines · plain
1## This test checks DWARFv4 DW_MACINFO_vendor_ext attribute.2 3# RUN: yaml2obj %s -o %t.o4# RUN: llvm-dwarfutil %t.o %t15# RUN: llvm-dwarfdump -a %t1 | FileCheck %s6 7## Content: "030002FF0656000400":8#9## .byte 3 # DW_MACINFO_start_file10## .byte 0 # Line Number11## .byte 2 # File Number12## .byte ff # DW_MACINFO_vendor_ext13## .byte 6 # Line Number14## .asciz "V" # Macro String15## .byte 4 # DW_MACINFO_end_file16## .byte 0 # End Of Macro List Mark17 18#CHECK: .debug_info contents:19#CHECK: DW_TAG_compile_unit20#CHECK: DW_AT_name ("CU1")21#CHECK: DW_AT_macro_info (0x00000000)22#CHECK: .debug_macinfo contents:23#CHECK: 0x00000000:24#CHECK: DW_MACINFO_start_file - lineno: 0 filenum: 225#CHECK: DW_MACINFO_invalid26 27--- !ELF28FileHeader:29 Class: ELFCLASS6430 Data: ELFDATA2LSB31 Type: ET_REL32 Machine: EM_X86_6433Sections:34 - Name: .text35 Type: SHT_PROGBITS36 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]37 Address: 0x100038 Size: 0x1b39 - Name: .debug_macinfo40 Type: SHT_PROGBITS41 Flags: [ ]42 Content: "030002FF0656000400"43DWARF:44 debug_abbrev:45 - Table:46 - Tag: DW_TAG_compile_unit47 Children: DW_CHILDREN_yes48 Attributes:49 - Attribute: DW_AT_producer50 Form: DW_FORM_string51 - Attribute: DW_AT_language52 Form: DW_FORM_data253 - Attribute: DW_AT_name54 Form: DW_FORM_string55 - Attribute: DW_AT_low_pc56 Form: DW_FORM_addr57 - Attribute: DW_AT_high_pc58 Form: DW_FORM_data859 - Attribute: DW_AT_macro_info60 Form: DW_FORM_sec_offset61 - Tag: DW_TAG_class_type62 Children: DW_CHILDREN_yes63 Attributes:64 - Attribute: DW_AT_name65 Form: DW_FORM_string66 - Tag: DW_TAG_member67 Children: DW_CHILDREN_no68 Attributes:69 - Attribute: DW_AT_type70 Form: DW_FORM_ref471 - Attribute: DW_AT_name72 Form: DW_FORM_string73 - Tag: DW_TAG_class_type74 Children: DW_CHILDREN_no75 Attributes:76 - Attribute: DW_AT_name77 Form: DW_FORM_string78 - Attribute: DW_AT_declaration79 Form: DW_FORM_flag_present80 - Tag: DW_TAG_class_type81 Children: DW_CHILDREN_yes82 Attributes:83 - Attribute: DW_AT_name84 Form: DW_FORM_string85 - Attribute: DW_AT_declaration86 Form: DW_FORM_flag_present87 - Tag: DW_TAG_template_type_parameter88 Children: DW_CHILDREN_no89 Attributes:90 - Attribute: DW_AT_type91 Form: DW_FORM_ref492 - Tag: DW_TAG_base_type93 Children: DW_CHILDREN_no94 Attributes:95 - Attribute: DW_AT_name96 Form: DW_FORM_string97 - Tag: DW_TAG_pointer_type98 Children: DW_CHILDREN_no99 Attributes:100 - Attribute: DW_AT_type101 Form: DW_FORM_ref4102 - Tag: DW_TAG_variable103 Children: DW_CHILDREN_no104 Attributes:105 - Attribute: DW_AT_name106 Form: DW_FORM_string107 - Attribute: DW_AT_const_value108 Form: DW_FORM_data4109 - Attribute: DW_AT_type110 Form: DW_FORM_ref4111 - Tag: DW_TAG_subprogram112 Children: DW_CHILDREN_no113 Attributes:114 - Attribute: DW_AT_name115 Form: DW_FORM_string116 - Attribute: DW_AT_low_pc117 Form: DW_FORM_addr118 - Attribute: DW_AT_high_pc119 Form: DW_FORM_data8120 - Attribute: DW_AT_type121 Form: DW_FORM_ref4122 debug_info:123 - Version: 4124 Entries:125 - AbbrCode: 1126 Values:127 - CStr: by_hand128 - Value: 0x04129 - CStr: CU1130 - Value: 0x1000131 - Value: 0x1b132 - Value: 0x0133 - AbbrCode: 2134 Values:135 - CStr: class1136 - AbbrCode: 3137 Values:138 - Value: 0x00000051139 - CStr: member1140 - AbbrCode: 3141 Values:142 - Value: 0x00000056143 - CStr: member2144 - AbbrCode: 0145 - AbbrCode: 7146 Values:147 - CStr: int148 - AbbrCode: 7149 Values:150 - CStr: char151 - AbbrCode: 7152 Values:153 - CStr: float154 - AbbrCode: 8155 Values:156 - Value: 0x0000002a157 - AbbrCode: 9158 Values:159 - CStr: var1160 - Value: 0x00000000161 - Value: 0x00000051162 - AbbrCode: 10163 Values:164 - CStr: foo1165 - Value: 0x1000166 - Value: 0x10167 - Value: 0x0000002e168 - AbbrCode: 0169 - AbbrCode: 0170...171