1#include <stdio.h>
2
3typedef int (*debug_callee) (int);
4
5extern int no_debug_caller (int, debug_callee);
6
7int
8called_from_nodebug_actual(int some_value)
9{
10 int return_value = 0;
11 return_value = printf (format: "Length: %d.\n", some_value);
12 return return_value; // Stop here and step out of me
13}
14
15int
16called_from_nodebug(int some_value)
17{
18 int intermediate_return_value = 0;
19 intermediate_return_value = called_from_nodebug_actual(some_value);
20 return intermediate_return_value;
21}
22
23int
24main()
25{
26 int return_value = no_debug_caller(5, called_from_nodebug);
27 printf (format: "I got: %d.\n", return_value);
28 return 0;
29}
30

source code of lldb/test/API/functionalities/step-avoids-no-debug/with-debug.c