summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-19 05:49:43 +0000
committerZachary Turner <zturner@google.com>2017-03-19 05:49:43 +0000
commit6934e0aaa7fa1f081a43e3ceea4c7a865ba015ce (patch)
tree1458713baad812a8f935583cbcd8eead1ee4df9a /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
parent3a86a04404037dd5f0e19a4b866f2d9c082d0c18 (diff)
downloadbcm5719-llvm-6934e0aaa7fa1f081a43e3ceea4c7a865ba015ce.tar.gz
bcm5719-llvm-6934e0aaa7fa1f081a43e3ceea4c7a865ba015ce.zip
Remove FileSystem::Get/SetFilePermissions
Differential Revision: https://reviews.llvm.org/D31089 llvm-svn: 298205
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
index 604f3fb3dbc..5ebd186c232 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
@@ -809,11 +809,12 @@ GDBRemoteCommunicationServerCommon::Handle_qPlatform_chmod(
StringExtractorGDBRemote &packet) {
packet.SetFilePos(::strlen("qPlatform_chmod:"));
- mode_t mode = packet.GetHexMaxU32(false, UINT32_MAX);
+ auto perms =
+ static_cast<llvm::sys::fs::perms>(packet.GetHexMaxU32(false, UINT32_MAX));
if (packet.GetChar() == ',') {
std::string path;
packet.GetHexByteString(path);
- Error error = FileSystem::SetFilePermissions(FileSpec{path, true}, mode);
+ Error error(llvm::sys::fs::setPermissions(path, perms));
StreamGDBRemote response;
response.Printf("F%u", error.GetError());
OpenPOWER on IntegriCloud