blob: e9641923faedfa832c8b87f3df3a6f882b8aa608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# UNSUPPORTED: system-windows
# Checks that the recognizers that should work across language runtimes
# are only registered once with the target.
# RUN: split-file %s %t
# RUN: %clangxx_host %t/main.cpp -g -o %t/cpp.out
# RUN: %lldb -b -s %t/commands.input %t/cpp.out | FileCheck %s
# RUN: %clangxx_host %t/main.mm -g -o %t/objcxx.out
# RUN: %lldb -b -s %t/commands.input %t/objcxx.out | FileCheck %s
# RUN: %clang_host %t/main.c -g -o %t/c.out
# RUN: %lldb -b -s %t/commands.input %t/c.out | FileCheck %s
# RUN: %clang_host %t/main.m -g -o %t/objc.out
# RUN: %lldb -b -s %t/commands.input %t/objc.out | FileCheck %s
#--- main.m
int main() {}
#--- main.c
int main() {}
#--- main.mm
int main() {}
#--- main.cpp
int main() {}
#--- commands.input
b main
frame recognizer list
run
frame recognizer list
continue
run
frame recognizer list
# CHECK: frame recognizer list
# CHECK-NEXT: no matching results found.
# CHECK: frame recognizer list
# CHECK-DAG: Verbose Trap StackFrame Recognizer
# CHECK-DAG: Assert StackFrame Recognizer
# CHECK-NOT: Verbose Trap StackFrame Recognizer
# CHECK-NOT: Assert StackFrame Recognizer
# FIXME: avoid duplicate frame recognizers in the target: https://github.com/llvm/llvm-project/issues/166341
# CHECK: frame recognizer list
# CHECK-DAG: Verbose Trap StackFrame Recognizer
# CHECK-DAG: Assert StackFrame Recognizer
# CHECK-DAG: Verbose Trap StackFrame Recognizer
# CHECK-DAG: Assert StackFrame Recognizer
|