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 3# triple in the test. 4# UNSUPPORTED: system-windows, system-darwin 5 6# RUN: cd %T 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 13 14process launch --stop-at-entry 15image show-unwind -n main 16# CHECK-LABEL: image show-unwind -n main 17# CHECK-NOT: debug_frame UnwindPlan: 18 19target 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 {{.*}} 22 23image 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. 28