aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process
diff options
context:
space:
mode:
authorWalter Erquinigo <a20012251@gmail.com>2019-10-07 20:26:49 +0000
committerWalter Erquinigo <a20012251@gmail.com>2019-10-07 20:26:49 +0000
commit8b6dcc1d8ce672713f0c0c1853f936c5d7b5d6ea (patch)
tree8080014ee6f9eac44e5ba7fa9a545e11f350e873 /lldb/source/Plugins/Process
parentd457f7e080259ffe0d0123446a2a2e50a99e0b7e (diff)
downloadllvm-8b6dcc1d8ce672713f0c0c1853f936c5d7b5d6ea.tar.gz
llvm-8b6dcc1d8ce672713f0c0c1853f936c5d7b5d6ea.tar.bz2
llvm-8b6dcc1d8ce672713f0c0c1853f936c5d7b5d6ea.zip
[gdb-remote] process properly effective uid
Summary: 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 ``` Reviewers: labath,clayborg,aadsm,xiaobai Subscribers: llvm-svn: 373953
Diffstat (limited to 'lldb/source/Plugins/Process')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index 7cb9ce0f52f3..f6ef45792459 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -1906,7 +1906,7 @@ bool GDBRemoteCommunicationClient::DecodeProcessInfoResponse(
} 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);