repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
lldb
/
test
/
API
/
python_api
/
signals
/
main.cpp
blob
ef29e91685c88eeeb7baec1a19fbf4fd029f0634
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
(
getpid
(),
SIGINT
);
// Set break point at this line and setup signal ignores.
18
#endif
19
return
0
;
20
}