bolt/deps/llvm-18.1.8/lldb/test/API/commands/target/stop-hooks/main.c

22 lines
286 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
#include <stdio.h>
static int g_var = 0;
int step_out_of_me()
{
return g_var; // Set a breakpoint here and step out.
}
void
increment_gvar() {
g_var++;
}
int
main()
{
int result = step_out_of_me(); // Stop here first
increment_gvar(); // Continue to here
return result;
}