1#include <stdio.h>
2
3// This example is meant to recurse infinitely.
4// The extra struct is just to make the frame dump
5// more complicated.
6
7struct Foo {
8 int a;
9 int b;
10 char *c;
11};
12
13int
14forgot_termination(int input, struct Foo my_foo) {
15 return forgot_termination(input: ++input, my_foo);
16}
17
18int
19main()
20{
21 struct Foo myFoo = {100, 300, "A string you will print a lot"}; // Set a breakpoint here
22 return forgot_termination(input: 1, my_foo: myFoo);
23}
24

source code of lldb/test/API/functionalities/bt-interrupt/main.c