Jim Ingham 1b1d981598 Revert "Revert "Add the ability to write target stop-hooks using the ScriptInterpreter.""
This reverts commit f775fe59640a2e837ad059a8f40e26989d4f9831.

I fixed a return type error in the original patch that was causing a test failure.
Also added a REQUIRES: python to the shell test so we'll skip this for
people who build lldb w/o Python.
Also added another test for the error printing.
2020-09-29 12:01:14 -07:00

16 lines
208 B
C

#include <stdio.h>
static int g_var = 0;
int step_out_of_me()
{
return g_var; // Set a breakpoint here and step out.
}
int
main()
{
int result = step_out_of_me(); // Stop here first
return result;
}