Fix MinGW build after lldb-platform-work merge:
- mode_t is defined in <sys/types.h>
- reorganized S_* user rights into win32.h
- Use Host::Kill instead of kill
- Currently #ifdef functions using pread/pwrite.
llvm-svn: 189364
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
index f6fdf15..f81446c 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
@@ -885,7 +885,7 @@
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 @@
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 @@
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 @@
}
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 @@
SendPacketNoLock(response.GetData(), response.GetSize());
return true;
+#endif
}
bool