1# struct Foo2a { 2# char *c1; 3# char *c2; 4# char *c3; 5# }; 6# struct Foo3 { 7# char *c1; 8# char *c2; 9# }; 10# 11# int foo() { 12# Foo2a f; 13# Foo3 f2; 14# return 0; 15# } 16 17 .text 18 .file "helper.cpp" 19 .globl _Z3foov # -- Begin function _Z3foov 20 .p2align 4, 0x90 21 .type _Z3foov,@function 22_Z3foov: # @_Z3foov 23.Lfunc_begin0: 24 .file 1 "/dwarf4-types-test" "helper.cpp" 25 .loc 1 11 0 # helper.cpp:11:0 26 .cfi_startproc 27# %bb.0: 28 pushq %rbp 29 .cfi_def_cfa_offset 16 30 .cfi_offset %rbp, -16 31 movq %rsp, %rbp 32 .cfi_def_cfa_register %rbp 33.Ltmp0: 34 .loc 1 14 3 prologue_end # helper.cpp:14:3 35 xorl %eax, %eax 36 .loc 1 14 3 epilogue_begin is_stmt 0 # helper.cpp:14:3 37 popq %rbp 38 .cfi_def_cfa %rsp, 8 39 retq 40.Ltmp1: 41.Lfunc_end0: 42 .size _Z3foov, .Lfunc_end0-_Z3foov 43 .cfi_endproc 44 # -- End function 45 .section .debug_types,"G",@progbits,1175092228111723119,comdat 46 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit 47.Ldebug_info_start0: 48 .short 4 # DWARF version number 49 .long .debug_abbrev # Offset Into Abbrev. Section 50 .byte 8 # Address Size (in bytes) 51 .quad 1175092228111723119 # Type Signature 52 .long 30 # Type DIE Offset 53 .byte 1 # Abbrev [1] 0x17:0x42 DW_TAG_type_unit 54 .short 33 # DW_AT_language 55 .long .Lline_table_start0 # DW_AT_stmt_list 56 .byte 2 # Abbrev [2] 0x1e:0x2e DW_TAG_structure_type 57 .byte 5 # DW_AT_calling_convention 58 .long .Linfo_string11 # DW_AT_name 59 .byte 24 # DW_AT_byte_size 60 .byte 1 # DW_AT_decl_file 61 .byte 1 # DW_AT_decl_line 62 .byte 3 # Abbrev [3] 0x27:0xc DW_TAG_member 63 .long .Linfo_string7 # DW_AT_name 64 .long 76 # DW_AT_type 65 .byte 1 # DW_AT_decl_file 66 .byte 2 # DW_AT_decl_line 67 .byte 0 # DW_AT_data_member_location 68 .byte 3 # Abbrev [3] 0x33:0xc DW_TAG_member 69 .long .Linfo_string9 # DW_AT_name 70 .long 76 # DW_AT_type 71 .byte 1 # DW_AT_decl_file 72 .byte 3 # DW_AT_decl_line 73 .byte 8 # DW_AT_data_member_location 74 .byte 3 # Abbrev [3] 0x3f:0xc DW_TAG_member 75 .long .Linfo_string10 # DW_AT_name 76 .long 76 # DW_AT_type 77 .byte 1 # DW_AT_decl_file 78 .byte 4 # DW_AT_decl_line 79 .byte 16 # DW_AT_data_member_location 80 .byte 0 # End Of Children Mark 81 .byte 4 # Abbrev [4] 0x4c:0x5 DW_TAG_pointer_type 82 .long 81 # DW_AT_type 83 .byte 5 # Abbrev [5] 0x51:0x7 DW_TAG_base_type 84 .long .Linfo_string8 # DW_AT_name 85 .byte 6 # DW_AT_encoding 86 .byte 1 # DW_AT_byte_size 87 .byte 0 # End Of Children Mark 88.Ldebug_info_end0: 89 .section .debug_types,"G",@progbits,12995149649732825572,comdat 90 .long .Ldebug_info_end1-.Ldebug_info_start1 # Length of Unit 91.Ldebug_info_start1: 92 .short 4 # DWARF version number 93 .long .debug_abbrev # Offset Into Abbrev. Section 94 .byte 8 # Address Size (in bytes) 95 .quad -5451594423976726044 # Type Signature 96 .long 30 # Type DIE Offset 97 .byte 1 # Abbrev [1] 0x17:0x36 DW_TAG_type_unit 98 .short 33 # DW_AT_language 99 .long .Lline_table_start0 # DW_AT_stmt_list 100 .byte 2 # Abbrev [2] 0x1e:0x22 DW_TAG_structure_type 101 .byte 5 # DW_AT_calling_convention 102 .long .Linfo_string13 # DW_AT_name 103 .byte 16 # DW_AT_byte_size 104 .byte 1 # DW_AT_decl_file 105 .byte 6 # DW_AT_decl_line 106 .byte 3 # Abbrev [3] 0x27:0xc DW_TAG_member 107 .long .Linfo_string7 # DW_AT_name 108 .long 64 # DW_AT_type 109 .byte 1 # DW_AT_decl_file 110 .byte 7 # DW_AT_decl_line 111 .byte 0 # DW_AT_data_member_location 112 .byte 3 # Abbrev [3] 0x33:0xc DW_TAG_member 113 .long .Linfo_string9 # DW_AT_name 114 .long 64 # DW_AT_type 115 .byte 1 # DW_AT_decl_file 116 .byte 8 # DW_AT_decl_line 117 .byte 8 # DW_AT_data_member_location 118 .byte 0 # End Of Children Mark 119 .byte 4 # Abbrev [4] 0x40:0x5 DW_TAG_pointer_type 120 .long 69 # DW_AT_type 121 .byte 5 # Abbrev [5] 0x45:0x7 DW_TAG_base_type 122 .long .Linfo_string8 # DW_AT_name 123 .byte 6 # DW_AT_encoding 124 .byte 1 # DW_AT_byte_size 125 .byte 0 # End Of Children Mark 126.Ldebug_info_end1: 127 .section .debug_abbrev,"",@progbits 128 .byte 1 # Abbreviation Code 129 .byte 65 # DW_TAG_type_unit 130 .byte 1 # DW_CHILDREN_yes 131 .byte 19 # DW_AT_language 132 .byte 5 # DW_FORM_data2 133 .byte 16 # DW_AT_stmt_list 134 .byte 23 # DW_FORM_sec_offset 135 .byte 0 # EOM(1) 136 .byte 0 # EOM(2) 137 .byte 2 # Abbreviation Code 138 .byte 19 # DW_TAG_structure_type 139 .byte 1 # DW_CHILDREN_yes 140 .byte 54 # DW_AT_calling_convention 141 .byte 11 # DW_FORM_data1 142 .byte 3 # DW_AT_name 143 .byte 14 # DW_FORM_strp 144 .byte 11 # DW_AT_byte_size 145 .byte 11 # DW_FORM_data1 146 .byte 58 # DW_AT_decl_file 147 .byte 11 # DW_FORM_data1 148 .byte 59 # DW_AT_decl_line 149 .byte 11 # DW_FORM_data1 150 .byte 0 # EOM(1) 151 .byte 0 # EOM(2) 152 .byte 3 # Abbreviation Code 153 .byte 13 # DW_TAG_member 154 .byte 0 # DW_CHILDREN_no 155 .byte 3 # DW_AT_name 156 .byte 14 # DW_FORM_strp 157 .byte 73 # DW_AT_type 158 .byte 19 # DW_FORM_ref4 159 .byte 58 # DW_AT_decl_file 160 .byte 11 # DW_FORM_data1 161 .byte 59 # DW_AT_decl_line 162 .byte 11 # DW_FORM_data1 163 .byte 56 # DW_AT_data_member_location 164 .byte 11 # DW_FORM_data1 165 .byte 0 # EOM(1) 166 .byte 0 # EOM(2) 167 .byte 4 # Abbreviation Code 168 .byte 15 # DW_TAG_pointer_type 169 .byte 0 # DW_CHILDREN_no 170 .byte 73 # DW_AT_type 171 .byte 19 # DW_FORM_ref4 172 .byte 0 # EOM(1) 173 .byte 0 # EOM(2) 174 .byte 5 # Abbreviation Code 175 .byte 36 # DW_TAG_base_type 176 .byte 0 # DW_CHILDREN_no 177 .byte 3 # DW_AT_name 178 .byte 14 # DW_FORM_strp 179 .byte 62 # DW_AT_encoding 180 .byte 11 # DW_FORM_data1 181 .byte 11 # DW_AT_byte_size 182 .byte 11 # DW_FORM_data1 183 .byte 0 # EOM(1) 184 .byte 0 # EOM(2) 185 .byte 6 # Abbreviation Code 186 .byte 17 # DW_TAG_compile_unit 187 .byte 1 # DW_CHILDREN_yes 188 .byte 37 # DW_AT_producer 189 .byte 14 # DW_FORM_strp 190 .byte 19 # DW_AT_language 191 .byte 5 # DW_FORM_data2 192 .byte 3 # DW_AT_name 193 .byte 14 # DW_FORM_strp 194 .byte 16 # DW_AT_stmt_list 195 .byte 23 # DW_FORM_sec_offset 196 .byte 27 # DW_AT_comp_dir 197 .byte 14 # DW_FORM_strp 198 .byte 17 # DW_AT_low_pc 199 .byte 1 # DW_FORM_addr 200 .byte 18 # DW_AT_high_pc 201 .byte 6 # DW_FORM_data4 202 .byte 0 # EOM(1) 203 .byte 0 # EOM(2) 204 .byte 7 # Abbreviation Code 205 .byte 46 # DW_TAG_subprogram 206 .byte 1 # DW_CHILDREN_yes 207 .byte 17 # DW_AT_low_pc 208 .byte 1 # DW_FORM_addr 209 .byte 18 # DW_AT_high_pc 210 .byte 6 # DW_FORM_data4 211 .byte 64 # DW_AT_frame_base 212 .byte 24 # DW_FORM_exprloc 213 .byte 110 # DW_AT_linkage_name 214 .byte 14 # DW_FORM_strp 215 .byte 3 # DW_AT_name 216 .byte 14 # DW_FORM_strp 217 .byte 58 # DW_AT_decl_file 218 .byte 11 # DW_FORM_data1 219 .byte 59 # DW_AT_decl_line 220 .byte 11 # DW_FORM_data1 221 .byte 73 # DW_AT_type 222 .byte 19 # DW_FORM_ref4 223 .byte 63 # DW_AT_external 224 .byte 25 # DW_FORM_flag_present 225 .byte 0 # EOM(1) 226 .byte 0 # EOM(2) 227 .byte 8 # Abbreviation Code 228 .byte 52 # DW_TAG_variable 229 .byte 0 # DW_CHILDREN_no 230 .byte 2 # DW_AT_location 231 .byte 24 # DW_FORM_exprloc 232 .byte 3 # DW_AT_name 233 .byte 14 # DW_FORM_strp 234 .byte 58 # DW_AT_decl_file 235 .byte 11 # DW_FORM_data1 236 .byte 59 # DW_AT_decl_line 237 .byte 11 # DW_FORM_data1 238 .byte 73 # DW_AT_type 239 .byte 19 # DW_FORM_ref4 240 .byte 0 # EOM(1) 241 .byte 0 # EOM(2) 242 .byte 9 # Abbreviation Code 243 .byte 19 # DW_TAG_structure_type 244 .byte 0 # DW_CHILDREN_no 245 .byte 60 # DW_AT_declaration 246 .byte 25 # DW_FORM_flag_present 247 .byte 105 # DW_AT_signature 248 .byte 32 # DW_FORM_ref_sig8 249 .byte 0 # EOM(1) 250 .byte 0 # EOM(2) 251 .byte 0 # EOM(3) 252 .section .debug_info,"",@progbits 253.Lcu_begin0: 254 .long .Ldebug_info_end2-.Ldebug_info_start2 # Length of Unit 255.Ldebug_info_start2: 256 .short 4 # DWARF version number 257 .long .debug_abbrev # Offset Into Abbrev. Section 258 .byte 8 # Address Size (in bytes) 259 .byte 6 # Abbrev [6] 0xb:0x73 DW_TAG_compile_unit 260 .long .Linfo_string0 # DW_AT_producer 261 .short 33 # DW_AT_language 262 .long .Linfo_string1 # DW_AT_name 263 .long .Lline_table_start0 # DW_AT_stmt_list 264 .long .Linfo_string2 # DW_AT_comp_dir 265 .quad .Lfunc_begin0 # DW_AT_low_pc 266 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc 267 .byte 7 # Abbrev [7] 0x2a:0x3a DW_TAG_subprogram 268 .quad .Lfunc_begin0 # DW_AT_low_pc 269 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc 270 .byte 1 # DW_AT_frame_base 271 .byte 86 272 .long .Linfo_string3 # DW_AT_linkage_name 273 .long .Linfo_string4 # DW_AT_name 274 .byte 1 # DW_AT_decl_file 275 .byte 11 # DW_AT_decl_line 276 .long 100 # DW_AT_type 277 # DW_AT_external 278 .byte 8 # Abbrev [8] 0x47:0xe DW_TAG_variable 279 .byte 2 # DW_AT_location 280 .byte 145 281 .byte 104 282 .long .Linfo_string6 # DW_AT_name 283 .byte 1 # DW_AT_decl_file 284 .byte 12 # DW_AT_decl_line 285 .long 107 # DW_AT_type 286 .byte 8 # Abbrev [8] 0x55:0xe DW_TAG_variable 287 .byte 2 # DW_AT_location 288 .byte 145 289 .byte 88 290 .long .Linfo_string12 # DW_AT_name 291 .byte 1 # DW_AT_decl_file 292 .byte 13 # DW_AT_decl_line 293 .long 116 # DW_AT_type 294 .byte 0 # End Of Children Mark 295 .byte 5 # Abbrev [5] 0x64:0x7 DW_TAG_base_type 296 .long .Linfo_string5 # DW_AT_name 297 .byte 5 # DW_AT_encoding 298 .byte 4 # DW_AT_byte_size 299 .byte 9 # Abbrev [9] 0x6b:0x9 DW_TAG_structure_type 300 # DW_AT_declaration 301 .quad 1175092228111723119 # DW_AT_signature 302 .byte 9 # Abbrev [9] 0x74:0x9 DW_TAG_structure_type 303 # DW_AT_declaration 304 .quad -5451594423976726044 # DW_AT_signature 305 .byte 0 # End Of Children Mark 306.Ldebug_info_end2: 307 .section .debug_str,"MS",@progbits,1 308.Linfo_string0: 309 .asciz "clang version 15.0.0" # string offset=0 310.Linfo_string1: 311 .asciz "helper.cpp" # string offset=146 312.Linfo_string2: 313 .asciz "/dwarf4-types-test" # string offset=157 314.Linfo_string3: 315 .asciz "_Z3foov" # string offset=213 316.Linfo_string4: 317 .asciz "foo" # string offset=221 318.Linfo_string5: 319 .asciz "int" # string offset=225 320.Linfo_string6: 321 .asciz "f" # string offset=229 322.Linfo_string7: 323 .asciz "c1" # string offset=231 324.Linfo_string8: 325 .asciz "char" # string offset=234 326.Linfo_string9: 327 .asciz "c2" # string offset=239 328.Linfo_string10: 329 .asciz "c3" # string offset=242 330.Linfo_string11: 331 .asciz "Foo2a" # string offset=245 332.Linfo_string12: 333 .asciz "f2" # string offset=251 334.Linfo_string13: 335 .asciz "Foo3" # string offset=254 336 .ident "clang version 15.0.0" 337 .section ".note.GNU-stack","",@progbits 338 .addrsig 339 .section .debug_line,"",@progbits 340.Lline_table_start0: 341