File: frame-2.test

package info (click to toggle)
llvm-toolchain-6.0 1%3A6.0.1-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 598,080 kB
  • sloc: cpp: 3,046,253; ansic: 595,057; asm: 271,965; python: 128,926; objc: 106,554; sh: 21,906; lisp: 10,191; pascal: 6,094; ml: 5,544; perl: 5,265; makefile: 2,227; cs: 2,027; xml: 686; php: 212; csh: 117
file content (47 lines) | stat: -rw-r--r-- 1,782 bytes parent folder | download
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
# REQUIRES: object-emission
# RUN: rm -rf %t
# RUN: mkdir -p %t
# RUN: llc -filetype=obj %p/../Inputs/frame-dw2.ll -o %t/frame-dw2.o
# RUN: llc -filetype=obj %p/../Inputs/frame-dw4.ll -o %t/frame-dw4.o
# RUN: llvm-dsymutil -f -oso-prepend-path=%t -y %s -o - | llvm-dwarfdump -debug-frame - | FileCheck %s

# Check the handling of multiple different CIEs. To have CIEs that
# appear to be different, use a dwarf2 version of the file along with
# a dwarf 4 version. The CIE header version (and layout) will be different.
# FIXME: this test also checks that we didn't reuse the first CIE when it
# appears again. This is a behavior we inherited from dsymutil-classic
# but this should be fixed (see comment in patchFrameInfoForObject())
---
triple:          'i386-apple-darwin'
objects:
  - filename: frame-dw2.o
    symbols:
      - { sym: _bar, objAddr: 0x0, binAddr: 0x1000, size: 0x12 }
      - { sym: _baz, objAddr: 0x0, binAddr: 0x2000, size: 0x12 }
  - filename: frame-dw4.o
    symbols:
      - { sym: _baz, objAddr: 0x0, binAddr: 0x3000, size: 0x12 }
  - filename: frame-dw2.o
    symbols:
      - { sym: _bar, objAddr: 0x0, binAddr: 0x4000, size: 0x12 }
...

# CHECK: .debug_frame contents:
# CHECK: 00000000 {{[0-9a-f]*}} ffffffff CIE
# CHECK-NEXT: Version:{{.*}}1
# CHECK-NOT: FDE
# CHECK:  FDE cie=00000000 pc=00001000...00001
# CHECK-NOT: FDE
# CHECK:  FDE cie=00000000 pc=00002000...00002
# CHECK-NOT: FDE
# CHECK: [[CIEDW4:[0-9a-f]*]] 00000010 ffffffff CIE
# CHECK-NEXT: Version:{{.*}}4
# CHECK-NOT: FDE
# CHECK:  FDE cie=[[CIEDW4]] pc=00003000...00003
# CHECK-NOT: FDE
# CHECK: [[CIEDW2:[0-9a-f]*]] {{[0-9a-f]*}} ffffffff CIE
# CHECK-NEXT: Version:{{.*}}1
# CHECK-NOT: FDE
# CHECK:  FDE cie=[[CIEDW2]] pc=00004000...00004
# CHECK-NOT: FDE
# CHECK: .eh_frame contents: