3 // This simple program is to demonstrate the capability of the lldb command
4 // "breakpoint command add" to add a set of commands to a breakpoint to be
5 // executed when the breakpoint is hit.
7 // In particular, we want to break within c(), but only if the immediate caller
19 return c(val
); // Find the line number where c's parent frame is a here.
34 int main (int argc
, char const *argv
[])
36 int A1
= a(1); // a(1) -> b(1) -> c(1)
37 printf("a(1) returns %d\n", A1
);
39 int B2
= b(2); // b(2) -> c(2)
40 printf("b(2) returns %d\n", B2
);
42 int A3
= a(3); // a(3) -> c(3)
43 printf("a(3) returns %d\n", A3
);