brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.3 KiB · b548e2f Raw
158 lines · plain
1# RUN: yaml2obj %s -o %t.o2# RUN: echo '---' > %t2.map3# RUN: echo "triple:          'x86_64-apple-darwin'" >> %t2.map4# RUN: echo 'objects:'  >> %t2.map5# RUN: echo " -  filename: '%t.o'" >> %t2.map6# RUN: echo '    symbols:' >> %t2.map7# RUN: echo '      - { sym: __Z3foov, objAddr: 0x0, binAddr: 0x10000, size: 0x10 }' >> %t2.map8# RUN: echo '...' >> %t2.map9# RUN: dsymutil --linker=parallel -y %t2.map -f -o %t1.out10# RUN: llvm-dwarfdump -a %t1.out | FileCheck %s11 12## This test checks that DW_TAG_namespace with DW_AT_extension13## attribute is joined with referenced namespace.14 15# CHECK: file format Mach-O 64-bit x86-6416# CHECK: 0x0000000b: DW_TAG_compile_unit17# CHECK: DW_TAG_namespace18# CHECK: DW_AT_name{{.*}}"parent_namespace"19# CHECK-NOT: DW_TAG_namespace20# CHECK: 0x[[INT:[0-9a-f]*]]: DW_TAG_base_type21# CHECK: DW_AT_name{{.*}}"int"22# CHECK: DW_TAG_compile_unit23# CHECK: DW_TAG_variable24# CHECK: DW_AT_type      (0x00000000[[INT]]25 26--- !mach-o27FileHeader:28  magic:      0xFEEDFACF29  cputype:    0x0100000730  cpusubtype: 0x0000000331  filetype:   0x0000000132  ncmds:      233  sizeofcmds: 37634  flags:      0x0000200035  reserved:   0x0000000036LoadCommands:37  - cmd:      LC_SEGMENT_6438    cmdsize:  23239    segname:  ''40    vmaddr:   0x0041    vmsize:   0x30042    fileoff:  0x30043    filesize: 0x30044    maxprot:  745    initprot: 746    nsects:   247    flags:    048    Sections:49      - sectname:  __debug_abbrev50        segname:   __DWARF51        addr:      0x000000000000000F52        size:      0x2A53        offset:    0x0000038054        align:     055        reloff:    0x0000000056        nreloc:    057        flags:     0x0200000058        reserved1: 0x0000000059        reserved2: 0x0000000060        reserved3: 0x0000000061      - sectname:  __debug_info62        segname:   __DWARF63        addr:      0x00000000000010064        size:      0x4265        offset:    0x000003AA66        align:     067        reloff:    0x0000060068        nreloc:    169        flags:     0x0200000070        reserved1: 0x0000000071        reserved2: 0x0000000072        reserved3: 0x0000000073        relocations:74          - address:         0x000001FC75            symbolnum:       176            pcrel:           true77            length:          378            extern:          false79            type:            080            scattered:       false81            value:           082  - cmd:             LC_SYMTAB83    cmdsize:         2484    symoff:          0x70085    nsyms:           186    stroff:          0x71087    strsize:         1088LinkEditData:89  NameList:90    - n_strx:          191      n_type:          0x0F92      n_sect:          193      n_desc:          094      n_value:         095  StringTable:96    - ''97    - '__Z3foov'98    - ''99DWARF:100  debug_abbrev:101    - Table:102      - Tag:      DW_TAG_compile_unit103        Children: DW_CHILDREN_yes104        Attributes:105          - Attribute: DW_AT_producer106            Form:      DW_FORM_string107          - Attribute: DW_AT_language108            Form:      DW_FORM_data2109      - Tag:      DW_TAG_namespace110        Children: DW_CHILDREN_yes111        Attributes:112          - Attribute: DW_AT_name113            Form:      DW_FORM_string114      - Tag:      DW_TAG_namespace115        Children: DW_CHILDREN_yes116        Attributes:117          - Attribute: DW_AT_extension118            Form:      DW_FORM_ref_addr119      - Tag:      DW_TAG_base_type120        Children: DW_CHILDREN_no121        Attributes:122          - Attribute: DW_AT_name123            Form:      DW_FORM_string124      - Tag:      DW_TAG_variable125        Children: DW_CHILDREN_no126        Attributes:127          - Attribute: DW_AT_name128            Form:      DW_FORM_string129          - Attribute: DW_AT_const_value130            Form:      DW_FORM_data4131          - Attribute: DW_AT_type132            Form:      DW_FORM_ref_addr133  debug_info:134    - Version: 4135      Entries:136        - AbbrCode: 1137          Values:138            - CStr: by_hand139            - Value:  0x04140        - AbbrCode: 2141          Values:142            - CStr: parent_namespace143        - AbbrCode: 3144          Values:145            - Value:  0x00000016146        - AbbrCode: 4147          Values:148            - CStr: int149        - AbbrCode: 0150        - AbbrCode: 0151        - AbbrCode: 5152          Values:153            - CStr: var154            - Value:  0x000000FF155            - Value:  0x0000002d156        - AbbrCode: 0157...158