32 lines · plain
1# XFAIL: target-windows2 3# Test that the plugin.cplusplus.display.function-name-format setting4# doesn't print into the frame-format setting unless all its format variables5# were successful.6 7# RUN: split-file %s %t8# RUN: %clangxx_host -g -gdwarf %t/main.cpp -o %t.out9# RUN: %lldb -x -b -s %t/commands.input %t.out -o exit 2>&1 \10# RUN: | FileCheck %s11 12#--- main.cpp13template<typename T> T gunc(int x = 10) {14 return T{};15}16 17int main(int argc, const char *argv[]) {18 gunc<int>();19 return 0;20}21 22#--- commands.input23settings set plugin.cplusplus.display.function-name-format "${function.basename}${script.target:invalid_func}"24settings set -f frame-format "custom-frame '${function.name-with-args}'\n"25break set -l 2 -f main.cpp26 27run28bt29 30# CHECK: custom-frame 'int gunc<int>(x=10)'31# CHECK: custom-frame 'main(argc=1, argv={{.*}})'32