diff options
author | Walter Erquinigo <a20012251@gmail.com> | 2019-10-07 20:26:49 +0000 |
---|---|---|
committer | Walter Erquinigo <a20012251@gmail.com> | 2019-10-07 20:26:49 +0000 |
commit | 8b6dcc1d8ce672713f0c0c1853f936c5d7b5d6ea (patch) | |
tree | 8080014ee6f9eac44e5ba7fa9a545e11f350e873 /lldb/packages | |
parent | d457f7e080259ffe0d0123446a2a2e50a99e0b7e (diff) | |
download | bcm5719-llvm-8b6dcc1d8ce672713f0c0c1853f936c5d7b5d6ea.tar.gz bcm5719-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/packages')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestPlatformClient.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestPlatformClient.py b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestPlatformClient.py index d0087770256..03d29c57a5a 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestPlatformClient.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestPlatformClient.py @@ -8,13 +8,13 @@ from gdbclientutils import * class TestPlatformClient(GDBRemoteTestBase): - def test_process_list_with_all_users(self): + def test_process_list(self): """Test connecting to a remote linux platform""" class MyResponder(MockGDBServerResponder): def qfProcessInfo(self, packet): if "all_users:1" in packet: - return "pid:10;ppid:1;uid:1;gid:1;euid:1;egid:1;name:" + binascii.hexlify("/a/process") + ";args:" + return "pid:10;ppid:1;uid:2;gid:3;euid:4;egid:5;name:" + binascii.hexlify("/a/process") + ";args:" else: return "E04" @@ -28,6 +28,10 @@ class TestPlatformClient(GDBRemoteTestBase): self.assertTrue(self.dbg.GetSelectedPlatform().IsConnected()) self.expect("platform process list -x", startstr="1 matching process was found", endstr="process" + os.linesep) + self.expect("platform process list -xv", + substrs=[ + "PID PARENT USER GROUP EFF USER EFF GROUP", + "10 1 2 3 4 5"]) self.expect("platform process list", error="error: no processes were found on the \"remote-linux\" platform") finally: |