blob: 465b1bb28e32794d518d756f4edfde681b7abe0f (
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
|
# Flaky on Linux, see https://github.com/llvm/llvm-project/issues/142726
# UNSUPPORTED: system-linux
# XFAIL: *
# Test disallowed variables inside the
# plugin.cplusplus.display.function-name-format setting.
# RUN: split-file %s %t
# RUN: %clang_host -g -gdwarf %t/main.cpp -o %t.out
# RUN: %lldb -o "settings set interpreter.stop-command-source-on-error false" \
# RUN: -x -b -s %t/commands.input %t.out -o exit 2>&1 \
# RUN: | FileCheck %s
#--- main.cpp
int main(int argc, char const *argv[]) { return 0; }
#--- commands.input
settings set plugin.cplusplus.display.function-name-format "${function.name-with-args}"
settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
b main
run
bt
# CHECK: bt
# CHECK-NOT: custom-frame
# CHECK: main
|