brintos

brintos / llvm-project-archived public Read only

0
0
Text · 845 B · 3ee92d5 Raw
35 lines · plain
1# XFAIL: target-windows2 3# Test the plugin.cplusplus.display.function-name-format setting.4 5# RUN: split-file %s %t6# RUN: %clangxx_host -g -gdwarf %t/main.cpp -o %t.out7# RUN: %lldb -x -b -s %t/commands.input %t.out -o exit 2>&1 \8# RUN:       | FileCheck %s9 10#--- main.cpp11namespace ns::ns2 {12void custom(int x) asm("_Zinvalid_mangling");13void custom(int x) {}14 15void bar() { custom(5); }16void foo() { bar(); }17}18 19int main(int argc, char const *argv[]) {20    ns::ns2::foo();21    return 0;22}23 24#--- commands.input25settings set plugin.cplusplus.display.function-name-format "${function.scope}${function.basename}"26settings set -f frame-format "custom-frame '${function.name-with-args}'\n"27break set -l 3 -f main.cpp28 29run30bt31 32# CHECK: custom-frame '_Zinvalid_mangling(x=5)'33# CHECK: custom-frame 'ns::ns2::bar'34# CHECK: custom-frame 'ns::ns2::foo'35