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
7 image 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
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