[Lldb-commits] [PATCH] D68312: [gdb-remote] process properly effective uid
walter erquinigo via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 1 18:45:31 PDT 2019
wallace created this revision.
wallace added reviewers: labath, clayborg, aadsm, xiaobai.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Someone wrote SetEffectiveSetEffectiveGroupID instead of SetEffectiveUserID.
After this fix, the android process list can show user names, e.g.
PID PARENT USER GROUP EFF USER EFF GROUP TRIPLE ARGUMENTS
====== ====== ========== ========== ========== ========== ============================== ============================
529 1 root 0 root 0 /sbin/ueventd
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D68312
Files:
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
Index: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
===================================================================
--- lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -1906,7 +1906,7 @@
} else if (name.equals("euid")) {
uint32_t uid = UINT32_MAX;
value.getAsInteger(0, uid);
- process_info.SetEffectiveGroupID(uid);
+ process_info.SetEffectiveUserID(uid);
} else if (name.equals("gid")) {
uint32_t gid = UINT32_MAX;
value.getAsInteger(0, gid);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68312.222738.patch
Type: text/x-patch
Size: 643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191002/7f9d4988/attachment.bin>
More information about the lldb-commits
mailing list