Index: llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp =================================================================== --- llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp +++ llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp @@ -192,13 +192,17 @@ default: break; } - // In DWARF3 DW_FORM_data4 and DW_FORM_data8 served also as a section offset. - // Don't check for DWARF version here, as some producers may still do this - // by mistake. Also accept DW_FORM_[line_]strp since these are - // .debug_[line_]str section offsets. - return (Form == DW_FORM_data4 || Form == DW_FORM_data8 || - Form == DW_FORM_strp || Form == DW_FORM_line_strp) && - FC == FC_SectionOffset; + + if (FC == FC_SectionOffset) { + if (Form == DW_FORM_strp || Form == DW_FORM_line_strp) + return true; + // In DWARF3 DW_FORM_data4 and DW_FORM_data8 served also as a section + // offset. If we don't have a DWARFUnit, default to the old behavior. + if (Form == DW_FORM_data4 || Form == DW_FORM_data8) + return !U || U->getVersion() <= 3; + } + + return false; } bool DWARFFormValue::extractValue(const DWARFDataExtractor &Data, Index: llvm/test/tools/llvm-dwarfdump/X86/formclass2.s =================================================================== --- /dev/null +++ llvm/test/tools/llvm-dwarfdump/X86/formclass2.s @@ -0,0 +1,464 @@ +# Source: +# struct e { +# enum {} f[16384]; +# short g; +# }; +# e foo() { +# auto E = new e; +# return *E; +# } +# Compile with: +# clang -O2 -gdwarf-2 -S a.cpp -o a2.s + +# RUN: llvm-mc %s -filetype obj -triple x86_64-apple-darwin -o %t.o +# RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s + +# CHECK: DW_TAG_member +# CHECK: DW_AT_name ("g") +# CHECK: DW_AT_data_member_location (DW_OP_plus_uconst 0x10000) + + .section __TEXT,__text,regular,pure_instructions + .macosx_version_min 10, 14 + .file 1 "/private/tmp" "a.cpp" + .globl __Z3foov ## -- Begin function _Z3foov + .p2align 4, 0x90 +__Z3foov: ## @_Z3foov +Lfunc_begin0: + .loc 1 5 0 ## a.cpp:5:0 + .cfi_startproc +## %bb.0: ## %entry + pushq %rbp + .cfi_def_cfa_offset 16 + .cfi_offset %rbp, -16 + movq %rsp, %rbp + .cfi_def_cfa_register %rbp + pushq %rbx + pushq %rax + .cfi_offset %rbx, -24 + movq %rdi, %rbx +Ltmp0: + .loc 1 6 12 prologue_end ## a.cpp:6:12 + movl $65540, %edi ## imm = 0x10004 + callq __Znwm +Ltmp1: + ##DEBUG_VALUE: foo:E <- $rax + .loc 1 7 10 ## a.cpp:7:10 + movl $65540, %edx ## imm = 0x10004 + movq %rbx, %rdi + movq %rax, %rsi + callq _memcpy +Ltmp2: + .loc 1 8 1 ## a.cpp:8:1 + movq %rbx, %rax + addq $8, %rsp + popq %rbx + popq %rbp + retq +Ltmp3: +Lfunc_end0: + .cfi_endproc + ## -- End function + .section __DWARF,__debug_str,regular,debug +Linfo_string: + .asciz "clang version 9.0.0 (git@github.com:llvm/llvm-project.git 752579736e76e0f322ba9ffa109326a93cd9237f)" ## string offset=0 + .asciz "a.cpp" ## string offset=100 + .asciz "/private/tmp" ## string offset=106 + .asciz "e" ## string offset=119 + .asciz "f" ## string offset=121 + .asciz "__ARRAY_SIZE_TYPE__" ## string offset=123 + .asciz "g" ## string offset=143 + .asciz "short" ## string offset=145 + .asciz "foo" ## string offset=151 + .asciz "_Z3foov" ## string offset=155 + .asciz "E" ## string offset=163 + .section __DWARF,__debug_loc,regular,debug +Lsection_debug_loc: +Ldebug_loc0: +.set Lset0, Ltmp1-Lfunc_begin0 + .quad Lset0 +.set Lset1, Ltmp2-Lfunc_begin0 + .quad Lset1 + .short 1 ## Loc expr size + .byte 80 ## DW_OP_reg0 + .quad 0 + .quad 0 + .section __DWARF,__debug_abbrev,regular,debug +Lsection_abbrev: + .byte 1 ## Abbreviation Code + .byte 17 ## DW_TAG_compile_unit + .byte 1 ## DW_CHILDREN_yes + .byte 37 ## DW_AT_producer + .byte 14 ## DW_FORM_strp + .byte 19 ## DW_AT_language + .byte 5 ## DW_FORM_data2 + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 16 ## DW_AT_stmt_list + .byte 6 ## DW_FORM_data4 + .byte 27 ## DW_AT_comp_dir + .byte 14 ## DW_FORM_strp + .ascii "\264B" ## DW_AT_GNU_pubnames + .byte 12 ## DW_FORM_flag + .ascii "\341\177" ## DW_AT_APPLE_optimized + .byte 12 ## DW_FORM_flag + .byte 17 ## DW_AT_low_pc + .byte 1 ## DW_FORM_addr + .byte 18 ## DW_AT_high_pc + .byte 1 ## DW_FORM_addr + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 2 ## Abbreviation Code + .byte 19 ## DW_TAG_structure_type + .byte 1 ## DW_CHILDREN_yes + .byte 54 ## DW_AT_calling_convention + .byte 11 ## DW_FORM_data1 + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 11 ## DW_AT_byte_size + .byte 6 ## DW_FORM_data4 + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 3 ## Abbreviation Code + .byte 13 ## DW_TAG_member + .byte 0 ## DW_CHILDREN_no + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 56 ## DW_AT_data_member_location + .byte 10 ## DW_FORM_block1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 4 ## Abbreviation Code + .byte 4 ## DW_TAG_enumeration_type + .byte 0 ## DW_CHILDREN_no + .byte 11 ## DW_AT_byte_size + .byte 11 ## DW_FORM_data1 + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 5 ## Abbreviation Code + .byte 1 ## DW_TAG_array_type + .byte 1 ## DW_CHILDREN_yes + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 6 ## Abbreviation Code + .byte 33 ## DW_TAG_subrange_type + .byte 0 ## DW_CHILDREN_no + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 55 ## DW_AT_count + .byte 5 ## DW_FORM_data2 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 7 ## Abbreviation Code + .byte 36 ## DW_TAG_base_type + .byte 0 ## DW_CHILDREN_no + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 11 ## DW_AT_byte_size + .byte 11 ## DW_FORM_data1 + .byte 62 ## DW_AT_encoding + .byte 11 ## DW_FORM_data1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 8 ## Abbreviation Code + .byte 36 ## DW_TAG_base_type + .byte 0 ## DW_CHILDREN_no + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 62 ## DW_AT_encoding + .byte 11 ## DW_FORM_data1 + .byte 11 ## DW_AT_byte_size + .byte 11 ## DW_FORM_data1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 9 ## Abbreviation Code + .byte 46 ## DW_TAG_subprogram + .byte 1 ## DW_CHILDREN_yes + .byte 17 ## DW_AT_low_pc + .byte 1 ## DW_FORM_addr + .byte 18 ## DW_AT_high_pc + .byte 1 ## DW_FORM_addr + .byte 64 ## DW_AT_frame_base + .byte 10 ## DW_FORM_block1 + .ascii "\207@" ## DW_AT_MIPS_linkage_name + .byte 14 ## DW_FORM_strp + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 63 ## DW_AT_external + .byte 12 ## DW_FORM_flag + .ascii "\341\177" ## DW_AT_APPLE_optimized + .byte 12 ## DW_FORM_flag + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 10 ## Abbreviation Code + .byte 52 ## DW_TAG_variable + .byte 0 ## DW_CHILDREN_no + .byte 2 ## DW_AT_location + .byte 6 ## DW_FORM_data4 + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 11 ## Abbreviation Code + .byte 15 ## DW_TAG_pointer_type + .byte 0 ## DW_CHILDREN_no + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 0 ## EOM(3) + .section __DWARF,__debug_info,regular,debug +Lsection_info: +Lcu_begin0: +.set Lset2, Ldebug_info_end0-Ldebug_info_start0 ## Length of Unit + .long Lset2 +Ldebug_info_start0: + .short 2 ## DWARF version number +.set Lset3, Lsection_abbrev-Lsection_abbrev ## Offset Into Abbrev. Section + .long Lset3 + .byte 8 ## Address Size (in bytes) + .byte 1 ## Abbrev [1] 0xb:0xa8 DW_TAG_compile_unit + .long 0 ## DW_AT_producer + .short 4 ## DW_AT_language + .long 100 ## DW_AT_name +.set Lset4, Lline_table_start0-Lsection_line ## DW_AT_stmt_list + .long Lset4 + .long 106 ## DW_AT_comp_dir + .byte 1 ## DW_AT_GNU_pubnames + .byte 1 ## DW_AT_APPLE_optimized + .quad Lfunc_begin0 ## DW_AT_low_pc + .quad Lfunc_end0 ## DW_AT_high_pc + .byte 2 ## Abbrev [2] 0x30:0x2f DW_TAG_structure_type + .byte 5 ## DW_AT_calling_convention + .long 119 ## DW_AT_name + .long 65540 ## DW_AT_byte_size + .byte 1 ## DW_AT_decl_file + .byte 1 ## DW_AT_decl_line + .byte 3 ## Abbrev [3] 0x3c:0xe DW_TAG_member + .long 121 ## DW_AT_name + .long 95 ## DW_AT_type + .byte 1 ## DW_AT_decl_file + .byte 2 ## DW_AT_decl_line + .byte 2 ## DW_AT_data_member_location + .byte 35 + .byte 0 + .byte 4 ## Abbrev [4] 0x4a:0x4 DW_TAG_enumeration_type + .byte 4 ## DW_AT_byte_size + .byte 1 ## DW_AT_decl_file + .byte 2 ## DW_AT_decl_line + .byte 3 ## Abbrev [3] 0x4e:0x10 DW_TAG_member + .long 143 ## DW_AT_name + .long 115 ## DW_AT_type + .byte 1 ## DW_AT_decl_file + .byte 3 ## DW_AT_decl_line + .byte 4 ## DW_AT_data_member_location + .byte 35 + .ascii "\200\200\004" + .byte 0 ## End Of Children Mark + .byte 5 ## Abbrev [5] 0x5f:0xd DW_TAG_array_type + .long 74 ## DW_AT_type + .byte 6 ## Abbrev [6] 0x64:0x7 DW_TAG_subrange_type + .long 108 ## DW_AT_type + .short 16384 ## DW_AT_count + .byte 0 ## End Of Children Mark + .byte 7 ## Abbrev [7] 0x6c:0x7 DW_TAG_base_type + .long 123 ## DW_AT_name + .byte 8 ## DW_AT_byte_size + .byte 7 ## DW_AT_encoding + .byte 8 ## Abbrev [8] 0x73:0x7 DW_TAG_base_type + .long 145 ## DW_AT_name + .byte 5 ## DW_AT_encoding + .byte 2 ## DW_AT_byte_size + .byte 9 ## Abbrev [9] 0x7a:0x33 DW_TAG_subprogram + .quad Lfunc_begin0 ## DW_AT_low_pc + .quad Lfunc_end0 ## DW_AT_high_pc + .byte 1 ## DW_AT_frame_base + .byte 86 + .long 155 ## DW_AT_MIPS_linkage_name + .long 151 ## DW_AT_name + .byte 1 ## DW_AT_decl_file + .byte 5 ## DW_AT_decl_line + .long 48 ## DW_AT_type + .byte 1 ## DW_AT_external + .byte 1 ## DW_AT_APPLE_optimized + .byte 10 ## Abbrev [10] 0x9d:0xf DW_TAG_variable +.set Lset5, Ldebug_loc0-Lsection_debug_loc ## DW_AT_location + .long Lset5 + .long 163 ## DW_AT_name + .byte 1 ## DW_AT_decl_file + .byte 6 ## DW_AT_decl_line + .long 173 ## DW_AT_type + .byte 0 ## End Of Children Mark + .byte 11 ## Abbrev [11] 0xad:0x5 DW_TAG_pointer_type + .long 48 ## DW_AT_type + .byte 0 ## End Of Children Mark +Ldebug_info_end0: + .section __DWARF,__debug_macinfo,regular,debug +Ldebug_macinfo: + .byte 0 ## End Of Macro List Mark + .section __DWARF,__apple_names,regular,debug +Lnames_begin: + .long 1212240712 ## Header Magic + .short 1 ## Header Version + .short 0 ## Header Hash Function + .long 2 ## Header Bucket Count + .long 2 ## Header Hash Count + .long 12 ## Header Data Length + .long 0 ## HeaderData Die Offset Base + .long 1 ## HeaderData Atom Count + .short 1 ## DW_ATOM_die_offset + .short 6 ## DW_FORM_data4 + .long -1 ## Bucket 0 + .long 0 ## Bucket 1 + .long 193491849 ## Hash in Bucket 1 + .long 1784752363 ## Hash in Bucket 1 +.set Lset6, LNames0-Lnames_begin ## Offset in Bucket 1 + .long Lset6 +.set Lset7, LNames1-Lnames_begin ## Offset in Bucket 1 + .long Lset7 +LNames0: + .long 151 ## foo + .long 1 ## Num DIEs + .long 122 + .long 0 +LNames1: + .long 155 ## _Z3foov + .long 1 ## Num DIEs + .long 122 + .long 0 + .section __DWARF,__apple_objc,regular,debug +Lobjc_begin: + .long 1212240712 ## Header Magic + .short 1 ## Header Version + .short 0 ## Header Hash Function + .long 1 ## Header Bucket Count + .long 0 ## Header Hash Count + .long 12 ## Header Data Length + .long 0 ## HeaderData Die Offset Base + .long 1 ## HeaderData Atom Count + .short 1 ## DW_ATOM_die_offset + .short 6 ## DW_FORM_data4 + .long -1 ## Bucket 0 + .section __DWARF,__apple_namespac,regular,debug +Lnamespac_begin: + .long 1212240712 ## Header Magic + .short 1 ## Header Version + .short 0 ## Header Hash Function + .long 1 ## Header Bucket Count + .long 0 ## Header Hash Count + .long 12 ## Header Data Length + .long 0 ## HeaderData Die Offset Base + .long 1 ## HeaderData Atom Count + .short 1 ## DW_ATOM_die_offset + .short 6 ## DW_FORM_data4 + .long -1 ## Bucket 0 + .section __DWARF,__apple_types,regular,debug +Ltypes_begin: + .long 1212240712 ## Header Magic + .short 1 ## Header Version + .short 0 ## Header Hash Function + .long 3 ## Header Bucket Count + .long 3 ## Header Hash Count + .long 20 ## Header Data Length + .long 0 ## HeaderData Die Offset Base + .long 3 ## HeaderData Atom Count + .short 1 ## DW_ATOM_die_offset + .short 6 ## DW_FORM_data4 + .short 3 ## DW_ATOM_die_tag + .short 5 ## DW_FORM_data2 + .short 4 ## DW_ATOM_type_flags + .short 11 ## DW_FORM_data1 + .long -1 ## Bucket 0 + .long 0 ## Bucket 1 + .long 1 ## Bucket 2 + .long 274395349 ## Hash in Bucket 1 + .long 177674 ## Hash in Bucket 2 + .long -594775205 ## Hash in Bucket 2 +.set Lset8, Ltypes0-Ltypes_begin ## Offset in Bucket 1 + .long Lset8 +.set Lset9, Ltypes1-Ltypes_begin ## Offset in Bucket 2 + .long Lset9 +.set Lset10, Ltypes2-Ltypes_begin ## Offset in Bucket 2 + .long Lset10 +Ltypes0: + .long 145 ## short + .long 1 ## Num DIEs + .long 115 + .short 36 + .byte 0 + .long 0 +Ltypes1: + .long 119 ## e + .long 1 ## Num DIEs + .long 48 + .short 19 + .byte 0 + .long 0 +Ltypes2: + .long 123 ## __ARRAY_SIZE_TYPE__ + .long 1 ## Num DIEs + .long 108 + .short 36 + .byte 0 + .long 0 + .section __DWARF,__debug_gnu_pubn,regular,debug +.set Lset11, LpubNames_end0-LpubNames_begin0 ## Length of Public Names Info + .long Lset11 +LpubNames_begin0: + .short 2 ## DWARF Version +.set Lset12, Lcu_begin0-Lsection_info ## Offset of Compilation Unit Info + .long Lset12 + .long 179 ## Compilation Unit Length + .long 122 ## DIE offset + .byte 48 ## Attributes: FUNCTION, EXTERNAL + .asciz "foo" ## External Name + .long 0 ## End Mark +LpubNames_end0: + .section __DWARF,__debug_gnu_pubt,regular,debug +.set Lset13, LpubTypes_end0-LpubTypes_begin0 ## Length of Public Types Info + .long Lset13 +LpubTypes_begin0: + .short 2 ## DWARF Version +.set Lset14, Lcu_begin0-Lsection_info ## Offset of Compilation Unit Info + .long Lset14 + .long 179 ## Compilation Unit Length + .long 115 ## DIE offset + .byte 144 ## Attributes: TYPE, STATIC + .asciz "short" ## External Name + .long 48 ## DIE offset + .byte 16 ## Attributes: TYPE, EXTERNAL + .asciz "e" ## External Name + .long 0 ## End Mark +LpubTypes_end0: + +.subsections_via_symbols + .section __DWARF,__debug_line,regular,debug +Lsection_line: +Lline_table_start0: Index: llvm/test/tools/llvm-dwarfdump/X86/formclass4.s =================================================================== --- /dev/null +++ llvm/test/tools/llvm-dwarfdump/X86/formclass4.s @@ -0,0 +1,502 @@ +# Source: +# struct e { +# enum {} f[16384]; +# short g; +# }; +# e foo() { +# auto E = new e; +# return *E; +# } +# Compile with: +# clang -O2 -gdwarf-4 -S a.cpp -o a4.s + +# RUN: llvm-mc %s -filetype obj -triple x86_64-apple-darwin -o %t.o +# RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s + +# CHECK: DW_TAG_member +# CHECK: DW_AT_name ("g") +# CHECK: DW_AT_data_member_location (0x00010000) + + .section __TEXT,__text,regular,pure_instructions + .macosx_version_min 10, 14 + .file 1 "/private/tmp" "a.cpp" + .globl __Z3foov ## -- Begin function _Z3foov + .p2align 4, 0x90 +__Z3foov: ## @_Z3foov +Lfunc_begin0: + .loc 1 5 0 ## a.cpp:5:0 + .cfi_startproc +## %bb.0: ## %entry + pushq %rbp + .cfi_def_cfa_offset 16 + .cfi_offset %rbp, -16 + movq %rsp, %rbp + .cfi_def_cfa_register %rbp + pushq %rbx + pushq %rax + .cfi_offset %rbx, -24 + movq %rdi, %rbx +Ltmp0: + .loc 1 6 12 prologue_end ## a.cpp:6:12 + movl $65540, %edi ## imm = 0x10004 + callq __Znwm +Ltmp1: + ##DEBUG_VALUE: foo:E <- $rax + .loc 1 7 10 ## a.cpp:7:10 + movl $65540, %edx ## imm = 0x10004 + movq %rbx, %rdi + movq %rax, %rsi + callq _memcpy +Ltmp2: + .loc 1 8 1 ## a.cpp:8:1 + movq %rbx, %rax + addq $8, %rsp + popq %rbx + popq %rbp + retq +Ltmp3: +Lfunc_end0: + .cfi_endproc + ## -- End function + .section __DWARF,__debug_str,regular,debug +Linfo_string: + .asciz "clang version 9.0.0 (git@github.com:llvm/llvm-project.git 752579736e76e0f322ba9ffa109326a93cd9237f)" ## string offset=0 + .asciz "a.cpp" ## string offset=100 + .asciz "/private/tmp" ## string offset=106 + .asciz "e" ## string offset=119 + .asciz "f" ## string offset=121 + .asciz "unsigned int" ## string offset=123 + .asciz "__ARRAY_SIZE_TYPE__" ## string offset=136 + .asciz "g" ## string offset=156 + .asciz "short" ## string offset=158 + .asciz "foo" ## string offset=164 + .asciz "_Z3foov" ## string offset=168 + .asciz "E" ## string offset=176 + .section __DWARF,__debug_loc,regular,debug +Lsection_debug_loc: +Ldebug_loc0: +.set Lset0, Ltmp1-Lfunc_begin0 + .quad Lset0 +.set Lset1, Ltmp2-Lfunc_begin0 + .quad Lset1 + .short 1 ## Loc expr size + .byte 80 ## DW_OP_reg0 + .quad 0 + .quad 0 + .section __DWARF,__debug_abbrev,regular,debug +Lsection_abbrev: + .byte 1 ## Abbreviation Code + .byte 17 ## DW_TAG_compile_unit + .byte 1 ## DW_CHILDREN_yes + .byte 37 ## DW_AT_producer + .byte 14 ## DW_FORM_strp + .byte 19 ## DW_AT_language + .byte 5 ## DW_FORM_data2 + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 16 ## DW_AT_stmt_list + .byte 23 ## DW_FORM_sec_offset + .byte 27 ## DW_AT_comp_dir + .byte 14 ## DW_FORM_strp + .ascii "\264B" ## DW_AT_GNU_pubnames + .byte 25 ## DW_FORM_flag_present + .ascii "\341\177" ## DW_AT_APPLE_optimized + .byte 25 ## DW_FORM_flag_present + .byte 17 ## DW_AT_low_pc + .byte 1 ## DW_FORM_addr + .byte 18 ## DW_AT_high_pc + .byte 6 ## DW_FORM_data4 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 2 ## Abbreviation Code + .byte 19 ## DW_TAG_structure_type + .byte 1 ## DW_CHILDREN_yes + .byte 54 ## DW_AT_calling_convention + .byte 11 ## DW_FORM_data1 + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 11 ## DW_AT_byte_size + .byte 6 ## DW_FORM_data4 + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 3 ## Abbreviation Code + .byte 13 ## DW_TAG_member + .byte 0 ## DW_CHILDREN_no + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 56 ## DW_AT_data_member_location + .byte 11 ## DW_FORM_data1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 4 ## Abbreviation Code + .byte 4 ## DW_TAG_enumeration_type + .byte 0 ## DW_CHILDREN_no + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 11 ## DW_AT_byte_size + .byte 11 ## DW_FORM_data1 + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 5 ## Abbreviation Code + .byte 13 ## DW_TAG_member + .byte 0 ## DW_CHILDREN_no + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 56 ## DW_AT_data_member_location + .byte 6 ## DW_FORM_data4 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 6 ## Abbreviation Code + .byte 1 ## DW_TAG_array_type + .byte 1 ## DW_CHILDREN_yes + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 7 ## Abbreviation Code + .byte 33 ## DW_TAG_subrange_type + .byte 0 ## DW_CHILDREN_no + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 55 ## DW_AT_count + .byte 5 ## DW_FORM_data2 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 8 ## Abbreviation Code + .byte 36 ## DW_TAG_base_type + .byte 0 ## DW_CHILDREN_no + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 62 ## DW_AT_encoding + .byte 11 ## DW_FORM_data1 + .byte 11 ## DW_AT_byte_size + .byte 11 ## DW_FORM_data1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 9 ## Abbreviation Code + .byte 36 ## DW_TAG_base_type + .byte 0 ## DW_CHILDREN_no + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 11 ## DW_AT_byte_size + .byte 11 ## DW_FORM_data1 + .byte 62 ## DW_AT_encoding + .byte 11 ## DW_FORM_data1 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 10 ## Abbreviation Code + .byte 46 ## DW_TAG_subprogram + .byte 1 ## DW_CHILDREN_yes + .byte 17 ## DW_AT_low_pc + .byte 1 ## DW_FORM_addr + .byte 18 ## DW_AT_high_pc + .byte 6 ## DW_FORM_data4 + .byte 64 ## DW_AT_frame_base + .byte 24 ## DW_FORM_exprloc + .byte 122 ## DW_AT_call_all_calls + .byte 25 ## DW_FORM_flag_present + .byte 110 ## DW_AT_linkage_name + .byte 14 ## DW_FORM_strp + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 63 ## DW_AT_external + .byte 25 ## DW_FORM_flag_present + .ascii "\341\177" ## DW_AT_APPLE_optimized + .byte 25 ## DW_FORM_flag_present + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 11 ## Abbreviation Code + .byte 52 ## DW_TAG_variable + .byte 0 ## DW_CHILDREN_no + .byte 2 ## DW_AT_location + .byte 23 ## DW_FORM_sec_offset + .byte 3 ## DW_AT_name + .byte 14 ## DW_FORM_strp + .byte 58 ## DW_AT_decl_file + .byte 11 ## DW_FORM_data1 + .byte 59 ## DW_AT_decl_line + .byte 11 ## DW_FORM_data1 + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 12 ## Abbreviation Code + .byte 15 ## DW_TAG_pointer_type + .byte 0 ## DW_CHILDREN_no + .byte 73 ## DW_AT_type + .byte 19 ## DW_FORM_ref4 + .byte 0 ## EOM(1) + .byte 0 ## EOM(2) + .byte 0 ## EOM(3) + .section __DWARF,__debug_info,regular,debug +Lsection_info: +Lcu_begin0: +.set Lset2, Ldebug_info_end0-Ldebug_info_start0 ## Length of Unit + .long Lset2 +Ldebug_info_start0: + .short 4 ## DWARF version number +.set Lset3, Lsection_abbrev-Lsection_abbrev ## Offset Into Abbrev. Section + .long Lset3 + .byte 8 ## Address Size (in bytes) + .byte 1 ## Abbrev [1] 0xb:0xa4 DW_TAG_compile_unit + .long 0 ## DW_AT_producer + .short 4 ## DW_AT_language + .long 100 ## DW_AT_name +.set Lset4, Lline_table_start0-Lsection_line ## DW_AT_stmt_list + .long Lset4 + .long 106 ## DW_AT_comp_dir + ## DW_AT_GNU_pubnames + ## DW_AT_APPLE_optimized + .quad Lfunc_begin0 ## DW_AT_low_pc +.set Lset5, Lfunc_end0-Lfunc_begin0 ## DW_AT_high_pc + .long Lset5 + .byte 2 ## Abbrev [2] 0x2a:0x30 DW_TAG_structure_type + .byte 5 ## DW_AT_calling_convention + .long 119 ## DW_AT_name + .long 65540 ## DW_AT_byte_size + .byte 1 ## DW_AT_decl_file + .byte 1 ## DW_AT_decl_line + .byte 3 ## Abbrev [3] 0x36:0xc DW_TAG_member + .long 121 ## DW_AT_name + .long 90 ## DW_AT_type + .byte 1 ## DW_AT_decl_file + .byte 2 ## DW_AT_decl_line + .byte 0 ## DW_AT_data_member_location + .byte 4 ## Abbrev [4] 0x42:0x8 DW_TAG_enumeration_type + .long 103 ## DW_AT_type + .byte 4 ## DW_AT_byte_size + .byte 1 ## DW_AT_decl_file + .byte 2 ## DW_AT_decl_line + .byte 5 ## Abbrev [5] 0x4a:0xf DW_TAG_member + .long 156 ## DW_AT_name + .long 117 ## DW_AT_type + .byte 1 ## DW_AT_decl_file + .byte 3 ## DW_AT_decl_line + .long 65536 ## DW_AT_data_member_location + .byte 0 ## End Of Children Mark + .byte 6 ## Abbrev [6] 0x5a:0xd DW_TAG_array_type + .long 66 ## DW_AT_type + .byte 7 ## Abbrev [7] 0x5f:0x7 DW_TAG_subrange_type + .long 110 ## DW_AT_type + .short 16384 ## DW_AT_count + .byte 0 ## End Of Children Mark + .byte 8 ## Abbrev [8] 0x67:0x7 DW_TAG_base_type + .long 123 ## DW_AT_name + .byte 7 ## DW_AT_encoding + .byte 4 ## DW_AT_byte_size + .byte 9 ## Abbrev [9] 0x6e:0x7 DW_TAG_base_type + .long 136 ## DW_AT_name + .byte 8 ## DW_AT_byte_size + .byte 7 ## DW_AT_encoding + .byte 8 ## Abbrev [8] 0x75:0x7 DW_TAG_base_type + .long 158 ## DW_AT_name + .byte 5 ## DW_AT_encoding + .byte 2 ## DW_AT_byte_size + .byte 10 ## Abbrev [10] 0x7c:0x2d DW_TAG_subprogram + .quad Lfunc_begin0 ## DW_AT_low_pc +.set Lset6, Lfunc_end0-Lfunc_begin0 ## DW_AT_high_pc + .long Lset6 + .byte 1 ## DW_AT_frame_base + .byte 86 + ## DW_AT_call_all_calls + .long 168 ## DW_AT_linkage_name + .long 164 ## DW_AT_name + .byte 1 ## DW_AT_decl_file + .byte 5 ## DW_AT_decl_line + .long 42 ## DW_AT_type + ## DW_AT_external + ## DW_AT_APPLE_optimized + .byte 11 ## Abbrev [11] 0x99:0xf DW_TAG_variable +.set Lset7, Ldebug_loc0-Lsection_debug_loc ## DW_AT_location + .long Lset7 + .long 176 ## DW_AT_name + .byte 1 ## DW_AT_decl_file + .byte 6 ## DW_AT_decl_line + .long 169 ## DW_AT_type + .byte 0 ## End Of Children Mark + .byte 12 ## Abbrev [12] 0xa9:0x5 DW_TAG_pointer_type + .long 42 ## DW_AT_type + .byte 0 ## End Of Children Mark +Ldebug_info_end0: + .section __DWARF,__debug_macinfo,regular,debug +Ldebug_macinfo: + .byte 0 ## End Of Macro List Mark + .section __DWARF,__apple_names,regular,debug +Lnames_begin: + .long 1212240712 ## Header Magic + .short 1 ## Header Version + .short 0 ## Header Hash Function + .long 2 ## Header Bucket Count + .long 2 ## Header Hash Count + .long 12 ## Header Data Length + .long 0 ## HeaderData Die Offset Base + .long 1 ## HeaderData Atom Count + .short 1 ## DW_ATOM_die_offset + .short 6 ## DW_FORM_data4 + .long -1 ## Bucket 0 + .long 0 ## Bucket 1 + .long 193491849 ## Hash in Bucket 1 + .long 1784752363 ## Hash in Bucket 1 +.set Lset8, LNames0-Lnames_begin ## Offset in Bucket 1 + .long Lset8 +.set Lset9, LNames1-Lnames_begin ## Offset in Bucket 1 + .long Lset9 +LNames0: + .long 164 ## foo + .long 1 ## Num DIEs + .long 124 + .long 0 +LNames1: + .long 168 ## _Z3foov + .long 1 ## Num DIEs + .long 124 + .long 0 + .section __DWARF,__apple_objc,regular,debug +Lobjc_begin: + .long 1212240712 ## Header Magic + .short 1 ## Header Version + .short 0 ## Header Hash Function + .long 1 ## Header Bucket Count + .long 0 ## Header Hash Count + .long 12 ## Header Data Length + .long 0 ## HeaderData Die Offset Base + .long 1 ## HeaderData Atom Count + .short 1 ## DW_ATOM_die_offset + .short 6 ## DW_FORM_data4 + .long -1 ## Bucket 0 + .section __DWARF,__apple_namespac,regular,debug +Lnamespac_begin: + .long 1212240712 ## Header Magic + .short 1 ## Header Version + .short 0 ## Header Hash Function + .long 1 ## Header Bucket Count + .long 0 ## Header Hash Count + .long 12 ## Header Data Length + .long 0 ## HeaderData Die Offset Base + .long 1 ## HeaderData Atom Count + .short 1 ## DW_ATOM_die_offset + .short 6 ## DW_FORM_data4 + .long -1 ## Bucket 0 + .section __DWARF,__apple_types,regular,debug +Ltypes_begin: + .long 1212240712 ## Header Magic + .short 1 ## Header Version + .short 0 ## Header Hash Function + .long 4 ## Header Bucket Count + .long 4 ## Header Hash Count + .long 20 ## Header Data Length + .long 0 ## HeaderData Die Offset Base + .long 3 ## HeaderData Atom Count + .short 1 ## DW_ATOM_die_offset + .short 6 ## DW_FORM_data4 + .short 3 ## DW_ATOM_die_tag + .short 5 ## DW_FORM_data2 + .short 4 ## DW_ATOM_type_flags + .short 11 ## DW_FORM_data1 + .long -1 ## Bucket 0 + .long 0 ## Bucket 1 + .long 2 ## Bucket 2 + .long 3 ## Bucket 3 + .long 274395349 ## Hash in Bucket 1 + .long -1304652851 ## Hash in Bucket 1 + .long 177674 ## Hash in Bucket 2 + .long -594775205 ## Hash in Bucket 3 +.set Lset10, Ltypes0-Ltypes_begin ## Offset in Bucket 1 + .long Lset10 +.set Lset11, Ltypes3-Ltypes_begin ## Offset in Bucket 1 + .long Lset11 +.set Lset12, Ltypes1-Ltypes_begin ## Offset in Bucket 2 + .long Lset12 +.set Lset13, Ltypes2-Ltypes_begin ## Offset in Bucket 3 + .long Lset13 +Ltypes0: + .long 158 ## short + .long 1 ## Num DIEs + .long 117 + .short 36 + .byte 0 + .long 0 +Ltypes3: + .long 123 ## unsigned int + .long 1 ## Num DIEs + .long 103 + .short 36 + .byte 0 + .long 0 +Ltypes1: + .long 119 ## e + .long 1 ## Num DIEs + .long 42 + .short 19 + .byte 0 + .long 0 +Ltypes2: + .long 136 ## __ARRAY_SIZE_TYPE__ + .long 1 ## Num DIEs + .long 110 + .short 36 + .byte 0 + .long 0 + .section __DWARF,__debug_gnu_pubn,regular,debug +.set Lset14, LpubNames_end0-LpubNames_begin0 ## Length of Public Names Info + .long Lset14 +LpubNames_begin0: + .short 2 ## DWARF Version +.set Lset15, Lcu_begin0-Lsection_info ## Offset of Compilation Unit Info + .long Lset15 + .long 175 ## Compilation Unit Length + .long 124 ## DIE offset + .byte 48 ## Attributes: FUNCTION, EXTERNAL + .asciz "foo" ## External Name + .long 0 ## End Mark +LpubNames_end0: + .section __DWARF,__debug_gnu_pubt,regular,debug +.set Lset16, LpubTypes_end0-LpubTypes_begin0 ## Length of Public Types Info + .long Lset16 +LpubTypes_begin0: + .short 2 ## DWARF Version +.set Lset17, Lcu_begin0-Lsection_info ## Offset of Compilation Unit Info + .long Lset17 + .long 175 ## Compilation Unit Length + .long 117 ## DIE offset + .byte 144 ## Attributes: TYPE, STATIC + .asciz "short" ## External Name + .long 42 ## DIE offset + .byte 16 ## Attributes: TYPE, EXTERNAL + .asciz "e" ## External Name + .long 103 ## DIE offset + .byte 144 ## Attributes: TYPE, STATIC + .asciz "unsigned int" ## External Name + .long 0 ## End Mark +LpubTypes_end0: + +.subsections_via_symbols + .section __DWARF,__debug_line,regular,debug +Lsection_line: +Lline_table_start0: