1 # TODO: When it's possible to run "image show-unwind" without a running
2 # process, we can remove the unsupported line below, and hard-code an ELF
4 # UNSUPPORTED: system-windows, system-darwin
7 # RUN: %clang_host %S/Inputs/target-symbols-add-unwind.c -g \
8 # RUN: -fno-unwind-tables -fno-asynchronous-unwind-tables \
9 # RUN: -o target-symbols-add-unwind.debug
10 # RUN: llvm-objcopy --strip-debug target-symbols-add-unwind.debug \
11 # RUN: target-symbols-add-unwind.stripped
12 # RUN: %lldb target-symbols-add-unwind.stripped -s %s -o quit | FileCheck %s
14 process launch --stop-at-entry
15 image show-unwind -n main
16 # CHECK-LABEL: image show-unwind -n main
17 # CHECK-NOT: debug_frame UnwindPlan:
19 target symbols add -s target-symbols-add-unwind.stripped target-symbols-add-unwind.debug
20 # CHECK-LABEL: target symbols add
21 # CHECK: symbol file {{.*}} has been added to {{.*}}
23 image show-unwind -n main
24 # CHECK-LABEL: image show-unwind -n main
25 # CHECK: debug_frame UnwindPlan:
26 # CHECK-NEXT: This UnwindPlan originally sourced from DWARF CFI
27 # CHECK-NEXT: This UnwindPlan is sourced from the compiler: yes.