xref: /llvm-project/lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-cfi.test (revision 99d187a003c9bd4bdc42c17e5563bd80f4e159e9)
1# REQUIRES: x86
2
3# RUN: yaml2obj %S/Inputs/unwind-via-stack-cfi.yaml -o %t
4# RUN: %lldb -c %t -o "target symbols add %S/Inputs/unwind-via-stack-cfi.syms" \
5# RUN:   -s %s -b | FileCheck %s
6
7image show-unwind -n bar
8# CHECK-LABEL: image show-unwind -n bar
9# CHECK: Asynchronous (not restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
10# CHECK: Synchronous (restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
11# CHECK:      Symbol file UnwindPlan:
12# CHECK-NEXT: This UnwindPlan originally sourced from breakpad STACK CFI
13# CHECK-NEXT: This UnwindPlan is sourced from the compiler: yes.
14# CHECK-NEXT: This UnwindPlan is valid at all instruction locations: no.
15# CHECK-NEXT: This UnwindPlan is for a trap handler function: no.
16# CHECK-NEXT: Address range of this UnwindPlan: [unwind-via-stack-cfi..module_image + 1056-0x0000000000000449)
17# CHECK-NEXT: row[0]: 0: CFA=DW_OP_breg6 +0, DW_OP_deref => rbp=DW_OP_pick 0x0, DW_OP_deref rsp=DW_OP_pick 0x0, DW_OP_consts +16, DW_OP_plus rip=DW_OP_pick 0x0, DW_OP_consts +8, DW_OP_plus, DW_OP_deref
18
19thread backtrace
20# CHECK-LABEL: thread backtrace
21# CHECK: frame #0: 0x0000000000400430 unwind-via-stack-cfi`bar + 16
22# CHECK: frame #1: 0x0000000000400497 unwind-via-stack-cfi`_start + 23
23# CHECK-NOT: frame
24