1int bottom () {
2 return 1; // Set a breakpoint here
3}
4int foo(int in) {
5 if (in > 0)
6 return foo(in: --in) + 5;
7 else
8 return bottom();
9}
10int main()
11{
12 return foo(in: 500);
13}
14

source code of lldb/test/API/functionalities/thread/backtrace_limit/main.cpp