brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.3 KiB · 32f1fb1 Raw
202 lines · plain
1# REQUIRES: x86-registered-target2 3# RUN: yaml2obj %s -o %t.o4# RUN: echo '---' > %t2.map5# RUN: echo "triple:          'x86_64-apple-darwin'" >> %t2.map6# RUN: echo 'objects:'  >> %t2.map7# RUN: echo " -  filename: '%t.o'" >> %t2.map8# RUN: echo '    symbols:' >> %t2.map9# RUN: echo '      - { sym: __Z3foov, objAddr: 0x0, binAddr: 0x10000, size: 0x10 }' >> %t2.map10# RUN: echo '...' >> %t2.map11# RUN: dsymutil -y -j 16 %t2.map -f -o - | llvm-dwarfdump -a - | FileCheck %s12 13# CHECK: file format Mach-O 64-bit x86-6414# CHECK: .debug_info contents:15# CHECK: Compile Unit:16# CHECK: DW_TAG_compile_unit17# CHECK-NOT: DW_TAG_class_type18# CHECK: Compile Unit:19# CHECK: DW_TAG_compile_unit20# CHECK: DW_TAG_class_type21# CHECK: NULL22 23 24--- !mach-o25FileHeader:26  magic:      0xFEEDFACF27  cputype:    0x0100000728  cpusubtype: 0x0000000329  filetype:   0x0000000130  ncmds:      231  sizeofcmds: 37632  flags:      0x0000200033  reserved:   0x0000000034LoadCommands:35  - cmd:      LC_SEGMENT_6436    cmdsize:  23237    segname:  ''38    vmaddr:   0x0039    vmsize:   0x30040    fileoff:  0x30041    filesize: 0x30042    maxprot:  743    initprot: 744    nsects:   245    flags:    046    Sections:47      - sectname:  __debug_abbrev48        segname:   __DWARF49        addr:      0x000000000000000F50        size:      0x4a51        offset:    0x0000038052        align:     053        reloff:    0x0000000054        nreloc:    055        flags:     0x0200000056        reserved1: 0x0000000057        reserved2: 0x0000000058        reserved3: 0x0000000059      - sectname:  __debug_info60        segname:   __DWARF61        addr:      0x00000000000010062        size:      0x6c63        offset:    0x0000041064        align:     065        reloff:    0x0000060066        nreloc:    167        flags:     0x0200000068        reserved1: 0x0000000069        reserved2: 0x0000000070        reserved3: 0x0000000071        relocations:72          - address:         0x1FC73            symbolnum:       174            pcrel:           true75            length:          376            extern:          true77            type:            078            scattered:       false79            value:           080  - cmd:             LC_SYMTAB81    cmdsize:         2482    symoff:          0x70083    nsyms:           284    stroff:          0x72085    strsize:         1086LinkEditData:87  NameList:88    - n_strx:          189      n_type:          0x0F90      n_sect:          191      n_desc:          092      n_value:         093    - n_strx:          194      n_type:          0x0F95      n_sect:          196      n_desc:          097      n_value:         098  StringTable:99    - ''100    - '__Z3foov'101    - ''102DWARF:103  debug_abbrev:104    - Table:105      - Tag:      DW_TAG_compile_unit106        Children: DW_CHILDREN_yes107        Attributes:108          - Attribute: DW_AT_producer109            Form:      DW_FORM_string110          - Attribute: DW_AT_language111            Form:      DW_FORM_data2112          - Attribute: DW_AT_name113            Form:      DW_FORM_string114      - Tag:      DW_TAG_class_type115        Children: DW_CHILDREN_no116        Attributes:117          - Attribute: DW_AT_name118            Form:      DW_FORM_string119      - Tag:      DW_TAG_variable120        Children: DW_CHILDREN_no121        Attributes:122          - Attribute: DW_AT_name123            Form:      DW_FORM_string124          - Attribute: DW_AT_const_value125            Form:      DW_FORM_data4126          - Attribute: DW_AT_type127            Form:      DW_FORM_ref4128      - Tag:      DW_TAG_pointer_type129        Children: DW_CHILDREN_no130        Attributes:131          - Attribute: DW_AT_type132            Form:      DW_FORM_ref4133    - Table:134      - Tag:      DW_TAG_compile_unit135        Children: DW_CHILDREN_yes136        Attributes:137          - Attribute: DW_AT_producer138            Form:      DW_FORM_string139          - Attribute: DW_AT_language140            Form:      DW_FORM_data2141          - Attribute: DW_AT_name142            Form:      DW_FORM_string143      - Tag:      DW_TAG_class_type144        Children: DW_CHILDREN_no145        Attributes:146          - Attribute: DW_AT_name147            Form:      DW_FORM_string148      - Tag:      DW_TAG_variable149        Children: DW_CHILDREN_no150        Attributes:151          - Attribute: DW_AT_name152            Form:      DW_FORM_string153          - Attribute: DW_AT_const_value154            Form:      DW_FORM_data4155          - Attribute: DW_AT_type156            Form:      DW_FORM_ref_addr157      - Tag:      DW_TAG_pointer_type158        Children: DW_CHILDREN_no159        Attributes:160          - Attribute: DW_AT_type161            Form:      DW_FORM_ref4162  debug_info:163    - Version: 4164      Entries:165        - AbbrCode: 1166          Values:167            - CStr: by_hand168            - Value:  0x04169            - CStr: CU1170        - AbbrCode: 2171          Values:172            - CStr: class1173        - AbbrCode: 4174          Values:175            - Value:  0x1a176        - AbbrCode: 3177          Values:178            - CStr: var1179            - Value:  0x00000000180            - Value:  0x00000058181        - AbbrCode: 0182    - Version: 4183      Entries:184        - AbbrCode: 1185          Values:186            - CStr: by_hand187            - Value:  0x04188            - CStr: CU2189        - AbbrCode: 2190          Values:191            - CStr: class1192        - AbbrCode: 4193          Values:194            - Value:  0x1a195        - AbbrCode: 3196          Values:197            - CStr: var2198            - Value:  0x00000000199            - Value:  0x00000022200        - AbbrCode: 0201...202