1#include <stdio.h>
2
3int a(int);
4int b(int);
5int c(int);
6
7int a(int val)
8{
9 if (val <= 1)
10 return b(val);
11 else if (val >= 3)
12 return c(val);
13
14 return val;
15}
16
17int b(int val)
18{
19 return c(val);
20}
21
22int c(int val)
23{
24 return val + 3; // Find the line number here.
25}
26
27int main (int argc, char const *argv[])
28{
29 int A1 = a(val: 1); // a(1) -> b(1) -> c(1)
30 printf(format: "a(1) returns %d\n", A1);
31
32 int B2 = b(val: 2); // b(2) -> c(2)
33 printf(format: "b(2) returns %d\n", B2);
34
35 int A3 = a(val: 3); // a(3) -> c(3)
36 printf(format: "a(3) returns %d\n", A3);
37
38 return 0;
39}
40

source code of lldb/test/API/python_api/lldbutil/frame/main.c