diff options
author | Ted Woodward <ted.woodward@codeaurora.org> | 2015-05-12 18:47:33 +0000 |
---|---|---|
committer | Ted Woodward <ted.woodward@codeaurora.org> | 2015-05-12 18:47:33 +0000 |
commit | 4744ec6da984f155450683c4aa223678278050a7 (patch) | |
tree | f0f23fb8a2cab71813005814f79ffc845d72fc2b /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp | |
parent | f1ac850e7721a79238e213f2e6624bf8a2f3a7bd (diff) | |
download | bcm5719-llvm-4744ec6da984f155450683c4aa223678278050a7.tar.gz bcm5719-llvm-4744ec6da984f155450683c4aa223678278050a7.zip |
Windows: fix bug in getcwd() and add chdir().
Summary:
GetCurrentDirectory() returns the number of characters copied; 0 is a failure, not a success.
Add implementation for chdir().
Reviewers: zturner
Reviewed By: zturner
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D9300
llvm-svn: 237162
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp index 36d64857046..f5e5d76f2e6 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp @@ -217,15 +217,10 @@ GDBRemoteCommunicationServerPlatform::Handle_QSetWorkingDir (StringExtractorGDBR std::string path; packet.GetHexByteString (path); -#ifdef _WIN32 - // Not implemented on Windows - return SendUnimplementedResponse ("GDBRemoteCommunicationServerPlatform::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); return SendOKResponse (); -#endif } GDBRemoteCommunication::PacketResult |