83 lines · plain
1# Stress-test the parallel indexing of compile units.2 3# RUN: llvm-mc -triple x86_64-pc-linux %s -o %t -filetype=obj4# RUN: %lldb %t -o "target variable A" -b | FileCheck %s5 6# CHECK-COUNT-256: A = 477 8 .section .debug_str,"MS",@progbits,19.Linfo_string0:10 .asciz "Hand-written DWARF"11.Lname:12 .asciz "A"13.Linfo_string4:14 .asciz "int" # string offset=9515 16 .section .debug_abbrev,"",@progbits17 .byte 1 # Abbreviation Code18 .byte 17 # DW_TAG_compile_unit19 .byte 1 # DW_CHILDREN_yes20 .byte 37 # DW_AT_producer21 .byte 14 # DW_FORM_strp22 .byte 0 # EOM(1)23 .byte 0 # EOM(2)24 .byte 2 # Abbreviation Code25 .byte 52 # DW_TAG_variable26 .byte 0 # DW_CHILDREN_no27 .byte 3 # DW_AT_name28 .byte 14 # DW_FORM_strp29 .byte 73 # DW_AT_type30 .byte 19 # DW_FORM_ref431 .byte 2 # DW_AT_location32 .byte 24 # DW_FORM_exprloc33 .byte 0 # EOM(1)34 .byte 0 # EOM(2)35 .byte 3 # Abbreviation Code36 .byte 36 # DW_TAG_base_type37 .byte 0 # DW_CHILDREN_no38 .byte 3 # DW_AT_name39 .byte 14 # DW_FORM_strp40 .byte 62 # DW_AT_encoding41 .byte 11 # DW_FORM_data142 .byte 11 # DW_AT_byte_size43 .byte 11 # DW_FORM_data144 .byte 0 # EOM(1)45 .byte 0 # EOM(2)46 .byte 0 # EOM(3)47 48.macro generate_unit49 .data50A\@:51 .long 4752 53 .section .debug_str,"MS",@progbits,154 55 .section .debug_info,"",@progbits56.Lcu_begin\@:57 .long .Ldebug_info_end\@-.Ldebug_info_start\@ # Length of Unit58.Ldebug_info_start\@:59 .short 4 # DWARF version number60 .long .debug_abbrev # Offset Into Abbrev. Section61 .byte 8 # Address Size (in bytes)62 .byte 1 # Abbrev [1] 0xb:0x30 DW_TAG_compile_unit63 .long .Linfo_string0 # DW_AT_producer64 .byte 2 # Abbrev [2] 0x1e:0x15 DW_TAG_variable65 .long .Lname # DW_AT_name66 .long .Ltype\@-.Lcu_begin\@ # DW_AT_type67 .byte 9 # DW_AT_location68 .byte 369 .quad A\@70.Ltype\@:71 .byte 3 # Abbrev [3] 0x33:0x7 DW_TAG_base_type72 .long .Linfo_string4 # DW_AT_name73 .byte 5 # DW_AT_encoding74 .byte 4 # DW_AT_byte_size75 .byte 0 # End Of Children Mark76.Ldebug_info_end\@:77 78.endm79 80.rept 25681generate_unit82.endr83