1#include <stdio.h>
2
3static int g_var = 0;
4
5int step_out_of_me()
6{
7 return g_var; // Set a breakpoint here and step out.
8}
9
10void
11increment_gvar() {
12 g_var++;
13}
14
15int
16main()
17{
18 int result = step_out_of_me(); // Stop here first
19 increment_gvar(); // Continue to here
20 return result;
21}
22

source code of lldb/test/API/commands/target/stop-hooks/main.c