MingW compilation (windows). Includes various refactoring to improve portability.

llvm-svn: 189107
This commit is contained in:
Virgile Bello
2013-08-23 12:44:05 +00:00
parent fcfa0afd7a
commit b2f1fb2943
70 changed files with 1761 additions and 296 deletions

View File

@@ -8,13 +8,16 @@
//===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Host/Config.h"
// C Includes
#include <errno.h>
#include <spawn.h>
#include <stdlib.h>
#ifndef LLDB_DISABLE_POSIX
#include <spawn.h>
#include <netinet/in.h>
#include <sys/mman.h> // for mmap
#endif
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
@@ -2687,7 +2690,7 @@ ProcessGDBRemote::KillDebugserverProcess ()
{
if (m_debugserver_pid != LLDB_INVALID_PROCESS_ID)
{
::kill (m_debugserver_pid, SIGINT);
Host::Kill (m_debugserver_pid, SIGINT);
m_debugserver_pid = LLDB_INVALID_PROCESS_ID;
}
}
@@ -2794,7 +2797,7 @@ ProcessGDBRemote::StopAsyncThread ()
}
void *
thread_result_t
ProcessGDBRemote::AsyncThread (void *arg)
{
ProcessGDBRemote *process = (ProcessGDBRemote*) arg;