diff options
author | Colin Riley <colin@codeplay.com> | 2013-11-26 15:10:46 +0000 |
---|---|---|
committer | Colin Riley <colin@codeplay.com> | 2013-11-26 15:10:46 +0000 |
commit | 909bb7a3f42e7c57d9fad0798d4caac059ff5dd9 (patch) | |
tree | b4505966ef6d51f782ae12d6d5248070a447a3fa /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | |
parent | 119f3073173cf6ae02d632d21e3926fcdac853fe (diff) | |
download | bcm5719-llvm-909bb7a3f42e7c57d9fad0798d4caac059ff5dd9.tar.gz bcm5719-llvm-909bb7a3f42e7c57d9fad0798d4caac059ff5dd9.zip |
Fix MSVC build
Added _WIN32 guards to new platform features. Using correct SetErrorStringWithFormat within Host when LLDB_DISABLE_POSIX is defined. Also fixed an if defined block.
llvm-svn: 195766
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp index 1e9bf0df86d..7cc3a05304d 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp @@ -1011,9 +1011,14 @@ GDBRemoteCommunicationServer::Handle_QSetWorkingDir (StringExtractorGDBRemote &p packet.GetHexByteString(path); if (m_is_platform) { +#ifdef _WIN32 + // Not implemented on Windows + return SendUnimplementedResponse("GDBRemoteCommunicationServer::Handle_QSetWorkingDir unimplemented"); +#else // If this packet is sent to a platform, then change the current working directory if (::chdir(path.c_str()) != 0) return SendErrorResponse(errno); +#endif } else { |