1# Test handing of dwarf expressions specifying the location of registers, if
2# those expressions refer to the frame's CFA value.
3
4# UNSUPPORTED: system-windows
5# UNSUPPORTED: system-darwin
6# REQUIRES: target-x86_64, native
7
8# RUN: %clang_host %p/Inputs/call-asm.c %p/Inputs/eh-frame-augment-noop.s -o %t
9# RUN: %lldb %t -s %s -o exit | FileCheck %s
10
11process launch
12# CHECK: stop reason
13
14thread backtrace
15# CHECK: frame #0: {{.*}}`foo + 2
16# CHECK: frame #1: {{.*}}`asm_main + 5
17
18target modules show-unwind -n foo
19# CHECK: Asynchronous (not restricted to call-sites) UnwindPlan is 'eh_frame CFI'
20# CHECK: eh_frame augmented UnwindPlan:
21# CHECK:      row[0]:  0: CFA=rsp +8 => rip=[CFA-8]
22# CHECK-NEXT: row[1]:  1: CFA=rsp+16 => rip=[CFA-8]
23# CHECK-NEXT: row[2]:  3: CFA=rsp +8 => rip=[CFA-8]
24