| 1 | #include <stdio.h> |
|---|---|
| 2 | #include <sys/types.h> |
| 3 | #if defined(_WIN32) |
| 4 | #include <windows.h> |
| 5 | #else |
| 6 | #include <unistd.h> |
| 7 | #include <signal.h> |
| 8 | #endif |
| 9 | |
| 10 | // This simple program is to test the lldb Python API related to process. |
| 11 | |
| 12 | int main (int argc, char const *argv[]) |
| 13 | { |
| 14 | #if defined(_WIN32) |
| 15 | ::ExitProcess(1); |
| 16 | #else |
| 17 | kill(pid: getpid(), SIGINT); // Set break point at this line and setup signal ignores. |
| 18 | #endif |
| 19 | return 0; |
| 20 | } |
| 21 |
