diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-08-17 09:40:32 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-08-17 09:41:45 -0700 |
commit | 8b67b707b00c35d8036a0740db269593c93b3fbf (patch) | |
tree | 4345d9fda7b0dd6610703107080d2252dd2eeb53 /lldb/test/API/api | |
parent | 6cc0b00f4d0a981a858d16c8d46638cf12b43f96 (diff) | |
download | llvm-8b67b707b00c35d8036a0740db269593c93b3fbf.zip llvm-8b67b707b00c35d8036a0740db269593c93b3fbf.tar.gz llvm-8b67b707b00c35d8036a0740db269593c93b3fbf.tar.bz2 |
[lldb] Add missing signal include for TestMultipleDebuggers.py
Fixes multi-process-driver.cpp:221:19: error: use of undeclared
identifier 'SIG_IGN'
Diffstat (limited to 'lldb/test/API/api')
-rw-r--r-- | lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp b/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp index 15170a3..5cf5ff3 100644 --- a/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp +++ b/lldb/test/API/api/multiple-debuggers/multi-process-driver.cpp @@ -1,11 +1,11 @@ -// This program creates NUMBER_OF_SIMULTANEOUS_DEBUG_SESSIONS of pthreads, +// This program creates NUMBER_OF_SIMULTANEOUS_DEBUG_SESSIONS of pthreads, // creates an lldb Debugger on each thread, creates targets, inserts two // breakpoints, runs to the first breakpoint, backtraces, runs to the second // breakpoint, backtraces, kills the inferior process, closes down the // debugger. -// The main thread keeps track of which pthreads have completed and which +// The main thread keeps track of which pthreads have completed and which // pthreads have completed successfully, and exits when all pthreads have // completed successfully, or our time limit has been exceeded. @@ -23,6 +23,7 @@ #include "lldb/API/SBDebugger.h" #include <chrono> +#include <csignal> #include <thread> #define NUMBER_OF_SIMULTANEOUS_DEBUG_SESSIONS 10 @@ -220,7 +221,7 @@ int main (int argc, char **argv) #if !defined(_MSC_VER) signal(SIGPIPE, SIG_IGN); #endif - + SBDebugger::Initialize(); completed_threads_array = (bool *) malloc (sizeof (bool) * NUMBER_OF_SIMULTANEOUS_DEBUG_SESSIONS); |