1 //===-- main.c --------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 #include <stdio.h>
9 #include <sys/types.h>
10 #if defined(_WIN32)
11 #include <windows.h>
12 #else
13 #include <unistd.h>
14 #include <signal.h>
15 #endif
16 
17 // This simple program is to test the lldb Python API related to process.
18 
19 int main (int argc, char const *argv[])
20 {
21 #if defined(_WIN32)
22 		::ExitProcess(1);
23 #else
24     kill(getpid(), SIGINT); // Set break point at this line and setup signal ignores.
25 #endif
26     return 0;
27 }
28