brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · 2e44fcb Raw
88 lines · yaml
1# RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s2 3## Check the name (preferring linkage name) of the DW_AT_call_origin DIE4## reference is printed after the address.5 6# CHECK: DW_TAG_call_site7# CHECK-NEXT: DW_AT_call_origin (0x{{[0-9a-f]+}} "_Z2f2v")8 9# CHECK: DW_TAG_call_site10# CHECK-NEXT: DW_AT_call_origin (0x{{[0-9a-f]+}} "f1")11 12--- !ELF13FileHeader:14  Class:   ELFCLASS6415  Data:    ELFDATA2LSB16  Type:    ET_EXEC17  Machine: EM_X86_6418DWARF:19  debug_str:20    - "_Z2f2v"21    - "f2"22    - "f1"23 24  debug_abbrev:25    - Table:26      - Code:            0x000000000000000127        Tag:             DW_TAG_compile_unit28        Children:        DW_CHILDREN_yes29        Attributes:30          - Attribute:       DW_AT_low_pc31            Form:            DW_FORM_addr32      - Code:            0x000000000000000233        Tag:             DW_TAG_subprogram34        Children:        DW_CHILDREN_yes35        Attributes:36          - Attribute:       DW_AT_name37            Form:            DW_FORM_strp38          - Attribute:       DW_AT_low_pc39            Form:            DW_FORM_addr40          - Attribute:       DW_AT_high_pc41            Form:            DW_FORM_addr42      - Code:            0x000000000000000343        Tag:             DW_TAG_call_site44        Children:        DW_CHILDREN_no45        Attributes:46          - Attribute:   DW_AT_call_origin47            Form:        DW_FORM_ref448      - Code:            0x000000000000000449        Tag:             DW_TAG_subprogram50        Children:        DW_CHILDREN_no51        Attributes:52          - Attribute:       DW_AT_linkage_name53            Form:            DW_FORM_strp54          - Attribute:       DW_AT_name55            Form:            DW_FORM_strp56          - Attribute:       DW_AT_declaration57            Form:            DW_FORM_flag_present58  debug_info:59    - Length:          0x3b60      Version:         561      UnitType:        0x01 # DW_TU_compile62      AbbrOffset:      0x000000000000000063      AddrSize:        864      Entries:65        - AbbrCode:    0x00000001          # start compile unit66          Values:                          #67            - Value:   0x0000000000000000  #68        - AbbrCode:    0x00000002          ## start f169          Values:                          ##70            - Value:   0x000000000000000a  ##71            - Value:   0x0000000000001000  ##72            - Value:   0x0000000000002000  ##73        - AbbrCode:    0x00000003          ### call site74          Values:                          ###75            - Value:   0x0000000000000035  ### (f2)76        - AbbrCode:    0x00000003          ### call site77          Values:                          ###78            - Value:   0x0000000000000015  ### (f1)79        - AbbrCode:    0x00000000          ## end f180          Values:      []                  #81        - AbbrCode:    0x00000004          ## f282          Values:                          ##83            - Value:   0x0000000000000000  ##84            - Value:   0x0000000000000007  ##85        - AbbrCode:    0x00000000          # end compile unit86          Values:      []87...88