180 lines · plain
1# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj -o - | not llvm-dwarfdump -verify - | FileCheck %s2 3# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_namespace) with name namesp missing.4# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_variable) with name var_block_addr missing.5# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_namespace) with name (anonymous namespace) missing.6# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_variable) with name var_loc_addr missing.7# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_variable) with name var_loc_tls missing.8# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_variable) with name var_loc_gnu_tls missing.9# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_subprogram) with name fun_name missing.10# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_subprogram) with name _Z8fun_name missing.11# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_inlined_subroutine) with name fun_inline missing.12# CHECK: error: Name Index @ 0x0: Entry for DIE @ {{.*}} (DW_TAG_label) with name label missing.13 14 .section .debug_loc,"",@progbits15.Ldebug_loc0:16 .quad 017 .quad 118 .short .Lloc0_end-.Lloc0_start # Loc expr size19.Lloc0_start:20 .byte 3 # DW_OP_addr21 .quad 0x4722.Lloc0_end:23 .quad 024 .quad 025 26 .section .debug_abbrev,"",@progbits27 .byte 1 # Abbreviation Code28 .byte 17 # DW_TAG_compile_unit29 .byte 1 # DW_CHILDREN_yes30 .byte 37 # DW_AT_producer31 .byte 8 # DW_FORM_string32 .byte 17 # DW_AT_low_pc33 .byte 1 # DW_FORM_addr34 .byte 18 # DW_AT_high_pc35 .byte 6 # DW_FORM_data436 .byte 0 # EOM(1)37 .byte 0 # EOM(2)38 39 .byte 2 # Abbreviation Code40 .byte 52 # DW_TAG_variable41 .byte 0 # DW_CHILDREN_no42 .byte 3 # DW_AT_name43 .byte 8 # DW_FORM_string44 .byte 2 # DW_AT_location45 .byte 24 # DW_FORM_exprloc46 .byte 0 # EOM(1)47 .byte 0 # EOM(2)48 49 .byte 3 # Abbreviation Code50 .byte 46 # DW_TAG_subprogram51 .byte 1 # DW_CHILDREN_yes52 .byte 3 # DW_AT_name53 .byte 8 # DW_FORM_string54 .byte 110 # DW_AT_linkage_name55 .byte 8 # DW_FORM_string56 .byte 82 # DW_AT_entry_pc57 .byte 1 # DW_FORM_addr58 .byte 0 # EOM(1)59 .byte 0 # EOM(2)60 61 .byte 4 # Abbreviation Code62 .byte 57 # DW_TAG_namespace63 .byte 1 # DW_CHILDREN_yes64 .byte 3 # DW_AT_name65 .byte 8 # DW_FORM_string66 .byte 0 # EOM(1)67 .byte 0 # EOM(2)68 69 .byte 5 # Abbreviation Code70 .byte 52 # DW_TAG_variable71 .byte 0 # DW_CHILDREN_no72 .byte 3 # DW_AT_name73 .byte 8 # DW_FORM_string74 .byte 2 # DW_AT_location75 .byte 23 # DW_FORM_sec_offset76 .byte 0 # EOM(1)77 .byte 0 # EOM(2)78 79 .byte 6 # Abbreviation Code80 .byte 57 # DW_TAG_namespace81 .byte 1 # DW_CHILDREN_yes82 .byte 0 # EOM(1)83 .byte 0 # EOM(2)84 85 .byte 7 # Abbreviation Code86 .byte 29 # DW_TAG_inlined_subroutine87 .byte 0 # DW_CHILDREN_no88 .byte 3 # DW_AT_name89 .byte 8 # DW_FORM_string90 .byte 17 # DW_AT_low_pc91 .byte 1 # DW_FORM_addr92 .byte 18 # DW_AT_high_pc93 .byte 1 # DW_FORM_addr94 .byte 0 # EOM(1)95 .byte 0 # EOM(2)96 97 .byte 8 # Abbreviation Code98 .byte 10 # DW_TAG_label99 .byte 0 # DW_CHILDREN_no100 .byte 3 # DW_AT_name101 .byte 8 # DW_FORM_string102 .byte 82 # DW_AT_entry_pc103 .byte 1 # DW_FORM_addr104 .byte 0 # EOM(1)105 .byte 0 # EOM(2)106 107 .byte 0 # EOM(3)108 .section .debug_info,"",@progbits109 110.Lcu_begin0:111 .long .Lcu_end0-.Lcu_start0 # Length of Unit112.Lcu_start0:113 .short 4 # DWARF version number114 .long .debug_abbrev # Offset Into Abbrev. Section115 .byte 8 # Address Size (in bytes)116 .byte 1 # Abbrev [1] DW_TAG_compile_unit117 .asciz "hand-written DWARF" # DW_AT_producer118 .quad 0x0 # DW_AT_low_pc119 .long 0x100 # DW_AT_high_pc120 121 .byte 4 # Abbrev [4] DW_TAG_namespace122 .asciz "namesp" # DW_AT_name123 .byte 2 # Abbrev [2] DW_TAG_variable124 .asciz "var_block_addr" # DW_AT_name125 .byte 9 # DW_AT_location126 .byte 3 # DW_OP_addr127 .quad 0x47128 .byte 0 # End Of Children Mark129 130 .byte 6 # Abbrev [6] DW_TAG_namespace131 .byte 5 # Abbrev [5] DW_TAG_variable132 .asciz "var_loc_addr" # DW_AT_name133 .long .Ldebug_loc0 # DW_AT_location134 .byte 0 # End Of Children Mark135 136 .byte 2 # Abbrev [2] DW_TAG_variable137 .asciz "var_loc_tls" # DW_AT_name138 .byte 1 # DW_AT_location139 .byte 0x9b # DW_OP_form_tls_address140 141 .byte 2 # Abbrev [2] DW_TAG_variable142 .asciz "var_loc_gnu_tls" # DW_AT_name143 .byte 1 # DW_AT_location144 .byte 0xe0 # DW_OP_GNU_push_tls_address145 146 .byte 3 # Abbrev [3] DW_TAG_subprogram147 .asciz "fun_name" # DW_AT_name148 .asciz "_Z8fun_name" # DW_AT_linkage_name149 .quad 0x47 # DW_AT_entry_pc150 .byte 7 # Abbrev [7] DW_TAG_inlined_subroutine151 .asciz "fun_inline" # DW_AT_name152 .quad 0x48 # DW_AT_low_pc153 .quad 0x49 # DW_AT_high_pc154 .byte 8 # Abbrev [8] DW_TAG_label155 .asciz "label" # DW_AT_name156 .quad 0x4a # DW_AT_entry_pc157 .byte 0 # End Of Children Mark158 159 .byte 0 # End Of Children Mark160.Lcu_end0:161 162 .section .debug_names,"",@progbits163 .long .Lnames_end0-.Lnames_start0 # Header: contribution length164.Lnames_start0:165 .short 5 # Header: version166 .short 0 # Header: padding167 .long 1 # Header: compilation unit count168 .long 0 # Header: local type unit count169 .long 0 # Header: foreign type unit count170 .long 0 # Header: bucket count171 .long 0 # Header: name count172 .long .Lnames_abbrev_end0-.Lnames_abbrev_start0 # Header: abbreviation table size173 .long 0 # Header: augmentation length174 .long .Lcu_begin0 # Compilation unit 0175.Lnames_abbrev_start0:176 .byte 0 # End of abbrev list177.Lnames_abbrev_end0:178.Lnames_entries0:179.Lnames_end0:180