[Lldb-commits] [PATCH] D31089: Remove FileSystem::GetFilePermissions and FileSystem::SetFilePermissions

Zachary Turner via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 17 12:47:19 PDT 2017


zturner added inline comments.


================
Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp:813
+  auto perms =
+      static_cast<llvm::sys::fs::perms>(packet.GetHexMaxU32(false, UINT32_MAX));
   if (packet.GetChar() == ',') {
----------------
labath wrote:
> This doesn't seem right. At the very least I would expect to see a matching change in the client code (I assume llvm constants don't match whatever we have used here (?)).
> 
> We don't care much about protocol compatibility, but the apple guys might. If that is the case then we will need some encode/decode functions here.
AFAICT both LLVM's enumeration and LLDB's enumeration map directly to the unix file permissions bits.


https://reviews.llvm.org/D31089





More information about the lldb-commits mailing list