diff options
author | Jason Molenda <jmolenda@apple.com> | 2017-03-21 04:45:10 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2017-03-21 04:45:10 +0000 |
commit | 2eb3227f97e9ed5d086a9cc80f9ed590e8a1ff93 (patch) | |
tree | f27e0e5634a00556430f635e843a97543abc6b81 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | |
parent | 3724ae4e7092c8145e22f5f1fbe4825c0682b907 (diff) | |
download | bcm5719-llvm-2eb3227f97e9ed5d086a9cc80f9ed590e8a1ff93.tar.gz bcm5719-llvm-2eb3227f97e9ed5d086a9cc80f9ed590e8a1ff93.zip |
Revert r298334 until Zachary has a chance to fix the buildbot failure
on macosx.
llvm-svn: 298338
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp index 5b20713f18f..758ece5b85e 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp @@ -642,15 +642,14 @@ GDBRemoteCommunicationServerCommon::Handle_vFile_Size( std::string path; packet.GetHexByteString(path); if (!path.empty()) { - uint64_t Size; - if (llvm::sys::fs::file_size(path, Size)) - return SendErrorResponse(5); + lldb::user_id_t retcode = FileSystem::GetFileSize(FileSpec(path, false)); StreamString response; response.PutChar('F'); - response.PutHex64(Size); - if (Size == UINT64_MAX) { + response.PutHex64(retcode); + if (retcode == UINT64_MAX) { response.PutChar(','); - response.PutHex64(Size); // TODO: replace with Host::GetSyswideErrorCode() + response.PutHex64( + retcode); // TODO: replace with Host::GetSyswideErrorCode() } return SendPacketNoLock(response.GetString()); } @@ -682,7 +681,7 @@ GDBRemoteCommunicationServerCommon::Handle_vFile_Exists( std::string path; packet.GetHexByteString(path); if (!path.empty()) { - bool retcode = llvm::sys::fs::exists(path); + bool retcode = FileSystem::GetFileExists(FileSpec(path, false)); StreamString response; response.PutChar('F'); response.PutChar(','); @@ -715,7 +714,7 @@ GDBRemoteCommunicationServerCommon::Handle_vFile_unlink( packet.SetFilePos(::strlen("vFile:unlink:")); std::string path; packet.GetHexByteString(path); - Error error(llvm::sys::fs::remove(path)); + Error error = FileSystem::Unlink(FileSpec{path, true}); StreamString response; response.Printf("F%u,%u", error.GetError(), error.GetError()); return SendPacketNoLock(response.GetString()); |