57 lines · plain
1# UNSUPPORTED: system-windows2 3# Checks that the recognizers that should work across language runtimes4# are only registered once with the target.5 6# RUN: split-file %s %t7 8# RUN: %clangxx_host %t/main.cpp -g -o %t/cpp.out9# RUN: %lldb -b -s %t/commands.input %t/cpp.out | FileCheck %s10 11# RUN: %clangxx_host %t/main.mm -g -o %t/objcxx.out12# RUN: %lldb -b -s %t/commands.input %t/objcxx.out | FileCheck %s13 14# RUN: %clang_host %t/main.c -g -o %t/c.out15# RUN: %lldb -b -s %t/commands.input %t/c.out | FileCheck %s16 17# RUN: %clang_host %t/main.m -g -o %t/objc.out18# RUN: %lldb -b -s %t/commands.input %t/objc.out | FileCheck %s19 20#--- main.m21int main() {}22 23#--- main.c24int main() {}25 26#--- main.mm27int main() {}28 29#--- main.cpp30int main() {}31 32#--- commands.input33 34b main35frame recognizer list36run37frame recognizer list38continue39run40frame recognizer list41 42# CHECK: frame recognizer list43# CHECK-NEXT: no matching results found.44 45# CHECK: frame recognizer list46# CHECK-DAG: Verbose Trap StackFrame Recognizer47# CHECK-DAG: Assert StackFrame Recognizer48# CHECK-NOT: Verbose Trap StackFrame Recognizer49# CHECK-NOT: Assert StackFrame Recognizer50 51# FIXME: avoid duplicate frame recognizers in the target: https://github.com/llvm/llvm-project/issues/16634152# CHECK: frame recognizer list53# CHECK-DAG: Verbose Trap StackFrame Recognizer54# CHECK-DAG: Assert StackFrame Recognizer55# CHECK-DAG: Verbose Trap StackFrame Recognizer56# CHECK-DAG: Assert StackFrame Recognizer57