summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/Unwind/eh-frame-small-fde.test
blob: 0ece6c2a12a3e7b105f98ff123905137934cee5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This test that we are able to unwind using eh_frame in case an FDE entry does
# not cover the entire range of a function we are unwinding through.

# REQUIRES: target-x86_64, system-linux, native

# RUN: %clang_host %p/Inputs/eh-frame-small-fde.s -o %t
# RUN: %lldb %t -s %s -o exit | FileCheck %s

breakpoint set -n bar
# CHECK: Breakpoint 1: where = {{.*}}`bar

process launch
# CHECK: stop reason = breakpoint 1.1

thread backtrace
# CHECK: frame #0: {{.*}}`bar
# CHECK: frame #1: {{.*}}`foo + 6
# CHECK: frame #2: {{.*}}`main + 20

target modules show-unwind -n foo
# CHECK: eh_frame UnwindPlan:
# CHECK: row[0]: 0: CFA=rsp +8 => rip=r13
OpenPOWER on IntegriCloud