File: prettyprint_call_site.yaml

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,998,492 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (87 lines) | stat: -rw-r--r-- 3,083 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s

## Check the name (preferring linkage name) of the DW_AT_call_origin DIE
## reference is printed after the address.

# CHECK: DW_TAG_call_site
# CHECK-NEXT: DW_AT_call_origin (0x{{[0-9a-f]+}} "_Z2f2v")

# CHECK: DW_TAG_call_site
# CHECK-NEXT: DW_AT_call_origin (0x{{[0-9a-f]+}} "f1")

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_EXEC
  Machine: EM_X86_64
DWARF:
  debug_str:
    - "_Z2f2v"
    - "f2"
    - "f1"

  debug_abbrev:
    - Table:
      - Code:            0x0000000000000001
        Tag:             DW_TAG_compile_unit
        Children:        DW_CHILDREN_yes
        Attributes:
          - Attribute:       DW_AT_low_pc
            Form:            DW_FORM_addr
      - Code:            0x0000000000000002
        Tag:             DW_TAG_subprogram
        Children:        DW_CHILDREN_yes
        Attributes:
          - Attribute:       DW_AT_name
            Form:            DW_FORM_strp
          - Attribute:       DW_AT_low_pc
            Form:            DW_FORM_addr
          - Attribute:       DW_AT_high_pc
            Form:            DW_FORM_addr
      - Code:            0x0000000000000003
        Tag:             DW_TAG_call_site
        Children:        DW_CHILDREN_no
        Attributes:
          - Attribute:   DW_AT_call_origin
            Form:        DW_FORM_ref4
      - Code:            0x0000000000000004
        Tag:             DW_TAG_subprogram
        Children:        DW_CHILDREN_no
        Attributes:
          - Attribute:       DW_AT_linkage_name
            Form:            DW_FORM_strp
          - Attribute:       DW_AT_name
            Form:            DW_FORM_strp
          - Attribute:       DW_AT_declaration
            Form:            DW_FORM_flag_present
  debug_info:
    - Length:          0x3b
      Version:         5
      UnitType:        0x01 # DW_TU_compile
      AbbrOffset:      0x0000000000000000
      AddrSize:        8
      Entries:
        - AbbrCode:    0x00000001          # start compile unit
          Values:                          #
            - Value:   0x0000000000000000  #
        - AbbrCode:    0x00000002          ## start f1
          Values:                          ##
            - Value:   0x000000000000000a  ##
            - Value:   0x0000000000001000  ##
            - Value:   0x0000000000002000  ##
        - AbbrCode:    0x00000003          ### call site
          Values:                          ###
            - Value:   0x0000000000000035  ### (f2)
        - AbbrCode:    0x00000003          ### call site
          Values:                          ###
            - Value:   0x0000000000000015  ### (f1)
        - AbbrCode:    0x00000000          ## end f1
          Values:      []                  #
        - AbbrCode:    0x00000004          ## f2
          Values:                          ##
            - Value:   0x0000000000000000  ##
            - Value:   0x0000000000000007  ##
        - AbbrCode:    0x00000000          # end compile unit
          Values:      []
...