unwind-via-stack-cfi.test
1.17 KB
# REQUIRES: x86
# RUN: yaml2obj %S/Inputs/unwind-via-stack-cfi.yaml > %t
# RUN: %lldb -c %t -o "target symbols add %S/Inputs/unwind-via-stack-cfi.syms" \
# RUN: -s %s -b | FileCheck %s
image show-unwind -n bar
# CHECK-LABEL: image show-unwind -n bar
# CHECK: Asynchronous (not restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
# CHECK: Synchronous (restricted to call-sites) UnwindPlan is 'breakpad STACK CFI'
# CHECK: Symbol file UnwindPlan:
# CHECK-NEXT: This UnwindPlan originally sourced from breakpad STACK CFI
# CHECK-NEXT: This UnwindPlan is sourced from the compiler: yes.
# CHECK-NEXT: This UnwindPlan is valid at all instruction locations: no.
# CHECK-NEXT: Address range of this UnwindPlan: [unwind-via-stack-cfi..module_image + 1056-0x0000000000000449)
# CHECK-NEXT: row[0]: 0: CFA=DW_OP_breg6 +0, DW_OP_deref => rbp=DW_OP_pick 0x00, DW_OP_deref rsp=DW_OP_pick 0x00, DW_OP_consts +16, DW_OP_plus rip=DW_OP_pick 0x00, DW_OP_consts +8, DW_OP_plus , DW_OP_deref
thread backtrace
# CHECK-LABEL: thread backtrace
# CHECK: frame #0: 0x0000000000400430 unwind-via-stack-cfi`bar + 16
# CHECK: frame #1: 0x0000000000400497 unwind-via-stack-cfi`_start + 23
# CHECK-NOT: frame