diff options
author | Virgile Bello <virgile.bello@gmail.com> | 2013-08-27 16:21:49 +0000 |
---|---|---|
committer | Virgile Bello <virgile.bello@gmail.com> | 2013-08-27 16:21:49 +0000 |
commit | ae12a3640d3c706ab84c217fd9e81cc5751d5f35 (patch) | |
tree | 203527751ff2cd08c0d600da1e112b326325bbb5 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | |
parent | dcdae946f3ed6d737efe27b52aadec217eedf036 (diff) | |
download | bcm5719-llvm-ae12a3640d3c706ab84c217fd9e81cc5751d5f35.tar.gz bcm5719-llvm-ae12a3640d3c706ab84c217fd9e81cc5751d5f35.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
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 |