summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/target/stop-hooks/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/target/stop-hooks/main.c')
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/target/stop-hooks/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/target/stop-hooks/main.c b/lldb/packages/Python/lldbsuite/test/commands/target/stop-hooks/main.c
new file mode 100644
index 00000000000..d08ad14776b
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/commands/target/stop-hooks/main.c
@@ -0,0 +1,14 @@
+#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()
+{
+ return step_out_of_me();
+}
OpenPOWER on IntegriCloud