blob: d86d41f73f1c1ef120484a272d830731bebe0763 [file] [log] [blame] [edit]
# 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 + 21
# CHECK: frame #2: {{.*}}`main + 20
target modules show-unwind -n foo
# CHECK: eh_frame UnwindPlan:
# CHECK: row[0]: 16: CFA=rsp +8 => rip=r13
# CHECK-NEXT: row[1]: 27: CFA=rsp +8 => rip=r14