1# This test that we are able to unwind using eh_frame in case an FDE entry does
2# not cover the entire range of a function we are unwinding through.
3
4# REQUIRES: target-x86_64, system-linux, native
5
6# RUN: %clang_host %p/Inputs/eh-frame-small-fde.s -o %t
7# RUN: %lldb %t -s %s -o exit | FileCheck %s
8
9breakpoint set -n bar
10# CHECK: Breakpoint 1: where = {{.*}}`bar
11
12process launch
13# CHECK: stop reason = breakpoint 1.1
14
15thread backtrace
16# CHECK: frame #0: {{.*}}`bar
17# CHECK: frame #1: {{.*}}`foo + 6
18# CHECK: frame #2: {{.*}}`main + 20
19
20target modules show-unwind -n foo
21# CHECK: eh_frame UnwindPlan:
22# CHECK: row[0]: 0: CFA=rsp +8 => rip=r13
23