summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/signals/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/signals/main.cpp')
-rw-r--r--lldb/test/python_api/signals/main.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/lldb/test/python_api/signals/main.cpp b/lldb/test/python_api/signals/main.cpp
new file mode 100644
index 00000000000..ddd2ffe5fb2
--- /dev/null
+++ b/lldb/test/python_api/signals/main.cpp
@@ -0,0 +1,20 @@
+//===-- main.c --------------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+#include <stdio.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <signal.h>
+
+// This simple program is to test the lldb Python API related to process.
+
+int main (int argc, char const *argv[])
+{
+ kill(getpid(), SIGINT); // Set break point at this line and setup signal ignores.
+ return 0;
+}
OpenPOWER on IntegriCloud