From ae12a3640d3c706ab84c217fd9e81cc5751d5f35 Mon Sep 17 00:00:00 2001 From: Virgile Bello Date: Tue, 27 Aug 2013 16:21:49 +0000 Subject: Fix MinGW build after lldb-platform-work merge: - mode_t is defined in - reorganized S_* user rights into win32.h - Use Host::Kill instead of kill - Currently #ifdef functions using pread/pwrite. llvm-svn: 189364 --- .../Process/gdb-remote/GDBRemoteCommunicationServer.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp index f6fdf1513eb..f81446c4482 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp @@ -885,7 +885,7 @@ GDBRemoteCommunicationServer::Handle_qKillSpawnedProcess (StringExtractorGDBRemo if (m_spawned_pids.find(pid) == m_spawned_pids.end()) return SendErrorResponse (10); } - kill (pid, SIGTERM); + Host::Kill (pid, SIGTERM); for (size_t i=0; i<10; ++i) { @@ -904,7 +904,7 @@ GDBRemoteCommunicationServer::Handle_qKillSpawnedProcess (StringExtractorGDBRemo if (m_spawned_pids.find(pid) == m_spawned_pids.end()) return true; } - kill (pid, SIGKILL); + Host::Kill (pid, SIGKILL); for (size_t i=0; i<10; ++i) { @@ -1111,6 +1111,10 @@ GDBRemoteCommunicationServer::Handle_vFile_Close (StringExtractorGDBRemote &pack bool GDBRemoteCommunicationServer::Handle_vFile_pRead (StringExtractorGDBRemote &packet) { +#ifdef _WIN32 + // Not implemented on Windows + return false; +#else StreamGDBRemote response; packet.SetFilePos(::strlen("vFile:pread:")); int fd = packet.GetS32(-1); @@ -1140,11 +1144,16 @@ GDBRemoteCommunicationServer::Handle_vFile_pRead (StringExtractorGDBRemote &pack } SendPacketNoLock(response.GetData(), response.GetSize()); return true; +#endif } bool GDBRemoteCommunicationServer::Handle_vFile_pWrite (StringExtractorGDBRemote &packet) { +#ifdef _WIN32 + // Not implemented on Windows + return false; +#else packet.SetFilePos(::strlen("vFile:pwrite:")); StreamGDBRemote response; @@ -1172,6 +1181,7 @@ GDBRemoteCommunicationServer::Handle_vFile_pWrite (StringExtractorGDBRemote &pac SendPacketNoLock(response.GetData(), response.GetSize()); return true; +#endif } bool -- cgit v1.2.3