summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/plugins/python_os_plugin/main.c
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-03-16 19:54:22 +0000
committerGreg Clayton <gclayton@apple.com>2015-03-16 19:54:22 +0000
commit75a19344ad865390007c594836685f06488c0816 (patch)
tree36312d6660ca66159112007ff148dbf01f32bd60 /lldb/test/functionalities/plugins/python_os_plugin/main.c
parent3eea196a4f898eddce2eed19847f749ae3e6b1d4 (diff)
downloadbcm5719-llvm-75a19344ad865390007c594836685f06488c0816.tar.gz
bcm5719-llvm-75a19344ad865390007c594836685f06488c0816.zip
Added an Python operating system plug-in test to verify that python can be used to add threads to an existing process.
The test does the following: 1 - runs a program to main without the OS plug-in and verifies no OS threads are in the process 2 - loads the OS plug-in and verifies the 3 OS plug-in threads are now in the current process 3 - verify the register contents of each thread that shows up 4 - unload the python OS plug-in and verify that the OS threads are gone. llvm-svn: 232401
Diffstat (limited to 'lldb/test/functionalities/plugins/python_os_plugin/main.c')
-rw-r--r--lldb/test/functionalities/plugins/python_os_plugin/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/test/functionalities/plugins/python_os_plugin/main.c b/lldb/test/functionalities/plugins/python_os_plugin/main.c
new file mode 100644
index 00000000000..faa6dd58ecd
--- /dev/null
+++ b/lldb/test/functionalities/plugins/python_os_plugin/main.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main (int argc, char const *argv[], char const *envp[])
+{
+ puts("stop here"); // Set breakpoint here
+ return 0;
+}
OpenPOWER on IntegriCloud