xref: /llvm-project/lldb/test/Shell/Unwind/eh-frame-dwarf-unwind.test (revision ecf7db8b52d7061ef8f14c1f7b6fcc370072d087)
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, ld_new-bug
5# REQUIRES: target-x86_64, native
6
7# RUN: %clang_host %p/Inputs/call-asm.c %p/Inputs/eh-frame-dwarf-unwind.s -o %t
8# RUN: %lldb %t -s %s -o exit | FileCheck %s
9
10breakpoint set -n bar
11# CHECK: Breakpoint 1: where = {{.*}}`bar
12
13process launch
14# CHECK: stop reason = breakpoint 1.1
15
16thread backtrace
17# CHECK: frame #0: {{.*}}`bar
18# CHECK: frame #1: {{.*}}`foo + 5
19# CHECK: frame #2: {{.*}}`asm_main + 22
20
21target modules show-unwind -n foo
22# CHECK: eh_frame UnwindPlan:
23# CHECK: row[0]: 0: CFA=rsp +8 => rip=DW_OP_lit8, DW_OP_minus, DW_OP_deref, DW_OP_const1u 0x47, DW_OP_minus
24