75 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin -dwarf-version=5 %s -o %t.o3 4# RUN: %lld -lSystem %t.o -o %t5# RUN: dsymutil -s %t | FileCheck %s -DDIR=%t -DSRC_PATH=%t.o6 7# CHECK: (N_SO ) 00 0000 0000000000000000 '/tmp{{[/\\]}}test.cpp'8# CHECK-NEXT: (N_OSO ) 03 0001 {{.*}} '[[SRC_PATH]]'9# CHECK-NEXT: (N_FUN ) 01 0000 [[#%.16x,MAIN:]] '_main'10# CHECK-NEXT: (N_FUN ) 00 0000 0000000000000001{{$}}11# CHECK-DAG: ( SECT EXT) 01 0000 [[#MAIN]] '_main'12# CHECK-DAG: ( {{.*}}) {{[0-9]+}} 0010 {{[0-9a-f]+}} '__mh_execute_header'13# CHECK-DAG: ( {{.*}}) {{[0-9]+}} 0100 0000000000000000 'dyld_stub_binder'14# CHECK-EMPTY:15 16.text17.globl _main18 19.subsections_via_symbols20 21_main:22Lfunc_begin0:23 retq24Lfunc_end0:25 26.section __DWARF,__debug_str_offs,regular,debug27Lsection_str_off:28 .long 12 ## Length of String Offsets Set29 .short 530 .short 031Lstr_offsets_base0:32.section __DWARF,__debug_str,regular,debug33 .asciz "test.cpp" ## string offset=034 .asciz "/tmp" ## string offset=935.section __DWARF,__debug_str_offs,regular,debug36 .long 037 .long 938.section __DWARF,__debug_abbrev,regular,debug39Lsection_abbrev:40 .byte 1 ## Abbreviation Code41 .byte 17 ## DW_TAG_compile_unit42 .byte 1 ## DW_CHILDREN_yes43 .byte 17 ## DW_AT_low_pc44 .byte 1 ## DW_FORM_addr45 .byte 18 ## DW_AT_high_pc46 .byte 6 ## DW_FORM_data447 .byte 3 ## DW_AT_name48 .byte 37 ## DW_FORM_strx149 .byte 27 ## DW_AT_comp_dir50 .byte 37 ## DW_FORM_strx151 .byte 114 ## DW_AT_str_offsets_base52 .byte 23 ## DW_FORM_sec_offset53 .byte 0 ## EOM(1)54 .byte 0 ## EOM(2)55 .byte 0 ## EOM(3)56.section __DWARF,__debug_info,regular,debug57.set Lset0, Ldebug_info_end0-Ldebug_info_start0 ## Length of Unit58 .long Lset059Ldebug_info_start0:60 .short 5 ## DWARF version number61 .byte 1 ## DWARF Unit Type62 .byte 8 ## Address Size (in bytes)63.set Lset1, Lsection_abbrev-Lsection_abbrev ## Offset Into Abbrev. Section64 .long Lset165 .byte 1 ## Abbrev [1] 0xb:0x48 DW_TAG_compile_unit66 .quad Lfunc_begin0 ## DW_AT_low_pc67.set Lset3, Lfunc_end0-Lfunc_begin0 ## DW_AT_high_pc68 .long Lset369 .byte 0 ## DW_AT_name70 .byte 1 ## DW_AT_comp_dir71.set Lset4, Lstr_offsets_base0-Lsection_str_off ## DW_AT_str_offsets_base72 .long Lset473 .byte 0 ## End Of Children Mark74Ldebug_info_end0:75