brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.2 KiB · 4bd0fc8 Raw
132 lines · plain
1# REQUIRES: lld2# RUN: llvm-mc --triple=x86_64-pc-windows --filetype=obj --defsym DLL=0 %s >%t.dll.o3# RUN: llvm-mc --triple=x86_64-pc-windows --filetype=obj --defsym EXE=0 %s >%t.exe.o4# RUN: lld-link /OUT:%t.dll %t.dll.o /SUBSYSTEM:console /dll /noentry /debug5# RUN: lld-link /OUT:%t.exe %t.exe.o /SUBSYSTEM:console /debug /force6# RUN: %lldb %t.exe -o "target modules add %t.dll" -o "expression var" \7# RUN:   -o exit 2>&1 | FileCheck %s8 9# CHECK: (lldb) expression var10# CHECK: (A) $0 = (member = 47)11 12        .section        .debug_abbrev,"dr"13.Lsection_abbrev:14        .byte   1                       # Abbreviation Code15        .byte   17                      # DW_TAG_compile_unit16        .byte   1                       # DW_CHILDREN_yes17        .byte   37                      # DW_AT_producer18        .byte   8                       # DW_FORM_string19        .byte   0                       # EOM(1)20        .byte   0                       # EOM(2)21        .byte   2                       # Abbreviation Code22        .byte   52                      # DW_TAG_variable23        .byte   0                       # DW_CHILDREN_no24        .byte   3                       # DW_AT_name25        .byte   8                       # DW_FORM_string26        .byte   73                      # DW_AT_type27        .byte   19                      # DW_FORM_ref428        .byte   2                       # DW_AT_location29        .byte   24                      # DW_FORM_exprloc30        .byte   0                       # EOM(1)31        .byte   0                       # EOM(2)32        .byte   3                       # Abbreviation Code33        .byte   19                      # DW_TAG_structure_type34        .byte   1                       # DW_CHILDREN_yes35        .byte   3                       # DW_AT_name36        .byte   8                       # DW_FORM_string37        .byte   11                      # DW_AT_byte_size38        .byte   11                      # DW_FORM_data139        .byte   0                       # EOM(1)40        .byte   0                       # EOM(2)41        .byte   4                       # Abbreviation Code42        .byte   13                      # DW_TAG_member43        .byte   0                       # DW_CHILDREN_no44        .byte   3                       # DW_AT_name45        .byte   8                       # DW_FORM_string46        .byte   73                      # DW_AT_type47        .byte   19                      # DW_FORM_ref448        .byte   56                      # DW_AT_data_member_location49        .byte   11                      # DW_FORM_data150        .byte   0                       # EOM(1)51        .byte   0                       # EOM(2)52        .byte   5                       # Abbreviation Code53        .byte   36                      # DW_TAG_base_type54        .byte   0                       # DW_CHILDREN_no55        .byte   3                       # DW_AT_name56        .byte   8                       # DW_FORM_string57        .byte   62                      # DW_AT_encoding58        .byte   11                      # DW_FORM_data159        .byte   11                      # DW_AT_byte_size60        .byte   11                      # DW_FORM_data161        .byte   0                       # EOM(1)62        .byte   0                       # EOM(2)63        .byte   6                       # Abbreviation Code64        .byte   19                      # DW_TAG_structure_type65        .byte   0                       # DW_CHILDREN_no66        .byte   3                       # DW_AT_name67        .byte   8                       # DW_FORM_string68        .byte   60                      # DW_AT_declaration69        .byte   25                      # DW_FORM_flag_present70        .byte   0                       # EOM(1)71        .byte   0                       # EOM(2)72        .byte   0                       # EOM(3)73 74.ifdef DLL75        .section        .debug_info,"dr"76.Lsection_info:77.Lcu_begin0:78        .long   .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit79.Ldebug_info_start0:80        .short  4                       # DWARF version number81        .secrel32       .Lsection_abbrev # Offset Into Abbrev. Section82        .byte   8                       # Address Size (in bytes)83        .byte   1                       # Abbrev [1] 0xb:0x4a DW_TAG_compile_unit84        .asciz  "Hand-written DWARF"    # DW_AT_producer85        .byte   3                       # Abbrev [3] 0x37:0x16 DW_TAG_structure_type86        .asciz  "A"                     # DW_AT_name87        .byte   4                       # DW_AT_byte_size88        .byte   4                       # Abbrev [4] 0x40:0xc DW_TAG_member89        .asciz  "member"                # DW_AT_name90        .long   .Lint-.Lsection_info    # DW_AT_type91        .byte   0                       # DW_AT_data_member_location92        .byte   0                       # End Of Children Mark93.Lint:94        .byte   5                       # Abbrev [5] 0x4d:0x7 DW_TAG_base_type95        .asciz  "int"                   # DW_AT_name96        .byte   5                       # DW_AT_encoding97        .byte   4                       # DW_AT_byte_size98        .byte   0                       # End Of Children Mark99.Ldebug_info_end0:100.endif101 102.ifdef EXE103        .data104        .globl  var105        .p2align        2106var:107        .long   47108 109        .section        .debug_info,"dr"110.Lsection_info:111.Lcu_begin0:112        .long   .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit113.Ldebug_info_start0:114        .short  4                       # DWARF version number115        .secrel32       .Lsection_abbrev # Offset Into Abbrev. Section116        .byte   8                       # Address Size (in bytes)117        .byte   1                       # Abbrev [1] 0xb:0x4a DW_TAG_compile_unit118        .asciz  "Hand-written DWARF"    # DW_AT_producer119        .byte   2                       # Abbrev [2] 0x1e:0x19 DW_TAG_variable120        .asciz  "var"                   # DW_AT_name121        .long   .LA-.Lsection_info      # DW_AT_type122        .byte   9                       # DW_AT_location123        .byte   3124        .quad   var125.LA:126        .byte   6                       # Abbrev [6] 0x37:0x16 DW_TAG_structure_type127        .asciz  "A"                     # DW_AT_name128                                        # DW_AT_declaration129        .byte   0                       # End Of Children Mark130.Ldebug_info_end0:131.endif132