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.
16 lines
208 B
C
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;
|
|
}
|