186 lines · plain
1## This test checks that error is reported if opcode_operands_table_flag2## is used.3 4# RUN: yaml2obj %s -o %t.o5# RUN: llvm-dwarfutil %t.o %t1 2>&1 | FileCheck --check-prefix=ERR %s6# RUN: llvm-dwarfdump --verify %t1 | FileCheck --check-prefix=VERIFY %s7# RUN: llvm-dwarfdump -a %t1 | FileCheck %s8 9# RUN: llvm-dwarfutil --linker parallel %t.o %t1 2>&1 | FileCheck --check-prefix=ERR %s10# RUN: llvm-dwarfdump --verify %t1 | FileCheck --check-prefix=VERIFY %s11# RUN: llvm-dwarfdump -a %t1 | FileCheck %s12 13# ERR: error: opcode_operands_table is not supported14 15# VERIFY: No errors.16 17## Content: "05000403000200":18#19## .short 5 # Macro information version20## .byte 0 # Flags: 32 bit21## .byte 3 # DW_MACRO_start_file22## .byte 0 # Line Number23## .byte 2 # File Number24## .byte 0 # End Of Macro List Mark25 26#CHECK: .debug_info contents:27#CHECK: DW_TAG_compile_unit28#CHECK: DW_AT_name ("CU1")29#CHECK-NOT: DW_AT_macros30#CHECK-NOT: .debug_macro contents:31 32--- !ELF33FileHeader:34 Class: ELFCLASS6435 Data: ELFDATA2LSB36 Type: ET_REL37 Machine: EM_X86_6438Sections:39 - Name: .text40 Type: SHT_PROGBITS41 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]42 Address: 0x100043 Size: 0x1b44 - Name: .debug_macro45 Type: SHT_PROGBITS46 Flags: [ ]47 Content: "05000403000200"48 - Name: .debug_str_offsets49 Type: SHT_PROGBITS50 Flags: [ ]51 Content: "080000000500000000000000"52DWARF:53 debug_abbrev:54 - Table:55 - Tag: DW_TAG_compile_unit56 Children: DW_CHILDREN_yes57 Attributes:58 - Attribute: DW_AT_producer59 Form: DW_FORM_string60 - Attribute: DW_AT_language61 Form: DW_FORM_data262 - Attribute: DW_AT_name63 Form: DW_FORM_string64 - Attribute: DW_AT_low_pc65 Form: DW_FORM_addr66 - Attribute: DW_AT_high_pc67 Form: DW_FORM_data868 - Attribute: DW_AT_macros69 Form: DW_FORM_sec_offset70 - Attribute: DW_AT_str_offsets_base71 Form: DW_FORM_sec_offset72 - Tag: DW_TAG_class_type73 Children: DW_CHILDREN_yes74 Attributes:75 - Attribute: DW_AT_name76 Form: DW_FORM_string77 - Tag: DW_TAG_member78 Children: DW_CHILDREN_no79 Attributes:80 - Attribute: DW_AT_type81 Form: DW_FORM_ref482 - Attribute: DW_AT_name83 Form: DW_FORM_string84 - Tag: DW_TAG_class_type85 Children: DW_CHILDREN_no86 Attributes:87 - Attribute: DW_AT_name88 Form: DW_FORM_string89 - Attribute: DW_AT_declaration90 Form: DW_FORM_flag_present91 - Tag: DW_TAG_class_type92 Children: DW_CHILDREN_yes93 Attributes:94 - Attribute: DW_AT_name95 Form: DW_FORM_string96 - Attribute: DW_AT_declaration97 Form: DW_FORM_flag_present98 - Tag: DW_TAG_template_type_parameter99 Children: DW_CHILDREN_no100 Attributes:101 - Attribute: DW_AT_type102 Form: DW_FORM_ref4103 - Tag: DW_TAG_base_type104 Children: DW_CHILDREN_no105 Attributes:106 - Attribute: DW_AT_name107 Form: DW_FORM_string108 - Tag: DW_TAG_pointer_type109 Children: DW_CHILDREN_no110 Attributes:111 - Attribute: DW_AT_type112 Form: DW_FORM_ref4113 - Tag: DW_TAG_variable114 Children: DW_CHILDREN_no115 Attributes:116 - Attribute: DW_AT_name117 Form: DW_FORM_string118 - Attribute: DW_AT_const_value119 Form: DW_FORM_data4120 - Attribute: DW_AT_type121 Form: DW_FORM_ref4122 - Tag: DW_TAG_subprogram123 Children: DW_CHILDREN_no124 Attributes:125 - Attribute: DW_AT_name126 Form: DW_FORM_string127 - Attribute: DW_AT_low_pc128 Form: DW_FORM_addr129 - Attribute: DW_AT_high_pc130 Form: DW_FORM_data8131 - Attribute: DW_AT_type132 Form: DW_FORM_ref4133 debug_info:134 - Version: 5135 UnitType: DW_UT_compile136 Entries:137 - AbbrCode: 1138 Values:139 - CStr: by_hand140 - Value: 0x04141 - CStr: CU1142 - Value: 0x1000143 - Value: 0x1b144 - Value: 0x0145 - Value: 0x8146 - AbbrCode: 2147 Values:148 - CStr: class1149 - AbbrCode: 3150 Values:151 - Value: 0x00000056152 - CStr: member1153 - AbbrCode: 3154 Values:155 - Value: 0x0000005b156 - CStr: member2157 - AbbrCode: 0158 - AbbrCode: 7159 Values:160 - CStr: int161 - AbbrCode: 7162 Values:163 - CStr: char164 - AbbrCode: 7165 Values:166 - CStr: float167 - AbbrCode: 8168 Values:169 - Value: 0x00000033170 - AbbrCode: 9171 Values:172 - CStr: var1173 - Value: 0x00000000174 - Value: 0x00000056175 - AbbrCode: 10176 Values:177 - CStr: foo1178 - Value: 0x1000179 - Value: 0x10180 - Value: 0x00000033181 - AbbrCode: 0182 - AbbrCode: 0183 debug_str:184 - 'aa'185...186