teak-llvm/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client
Walter Erquinigo af1d27e301 [platform process list] add a flag for showing the processes of all users
Summary:
For context: https://reviews.llvm.org/D68293

We need a way to show all the processes on android regardless of the user id.
When you run `platform process list`, you only see the processes with the same user as the user that launched lldb-server. However, it's quite useful to see all the processes, though, and it will lay a foundation for full apk debugging support from lldb.

Before:
```
PID    PARENT USER       TRIPLE                   NAME
====== ====== ========== ======================== ============================
3234   1                 aarch64-unknown-linux-android adbd
8034   3234              aarch64-unknown-linux-android sh
9096   3234              aarch64-unknown-linux-android sh
9098   9096              aarch64-unknown-linux-android lldb-server
(lldb) ^D
```

Now:
```
(lldb) platform process list -x
205 matching processes were found on "remote-android"
PID    PARENT USER       TRIPLE                   NAME
====== ====== ========== ======================== ============================
1      0                                          init
524    1                                          init
525    1                                          init
531    1                                          ueventd
568    1                                          logd
569    1                 aarch64-unknown-linux-android servicemanager
570    1                 aarch64-unknown-linux-android hwservicemanager
571    1                 aarch64-unknown-linux-android vndservicemanager
577    1                 aarch64-unknown-linux-android qseecomd
580    577               aarch64-unknown-linux-android qseecomd
...
23816  979                                        com.android.providers.calendar
24600  979                                        com.verizon.mips.services
27888  979                                        com.hualai
28043  2378                                       com.android.chrome:sandboxed_process0
31449  979                                        com.att.shm
31779  979                                        com.samsung.android.authfw
31846  979                                        com.samsung.android.server.iris
32014  979                                        com.samsung.android.MtpApplication
32045  979                                        com.samsung.InputEventApp
```

Reviewers: labath,xiaobai,aadsm,clayborg

Subscribers:

> llvm-svn: 374584

llvm-svn: 374631
2019-10-12 02:36:16 +00:00
..
a.yaml
gdbclientutils.py [platform process list] add a flag for showing the processes of all users 2019-10-12 02:36:16 +00:00
operating_system_2.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
operating_system.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
TestArmRegisterDefinition.py Change the disabling of packet logging to be in TearDownHook lambdas. 2019-05-10 23:22:15 +00:00
TestGDBRemoteClient.py
TestGDBRemoteLoad.py
TestNestedRegDefinitions.py Support nested target.xml register definition files, lack of reg group markers. 2019-06-26 21:59:39 +00:00
TestNoWatchpointSupportInfo.py [lldb] Increase testsuite packet-timeout 5secs -> 1min 2019-07-29 16:10:16 +00:00
TestPlatformClient.py [platform process list] add a flag for showing the processes of all users 2019-10-12 02:36:16 +00:00
TestRecognizeBreakpoint.py @skipIfXmlSupportMissing TestRecognizeBreakpoint 2019-07-01 13:12:29 +00:00
TestRestartBug.py
TestStopPCs.py Change the disabling of packet logging to be in TearDownHook lambdas. 2019-05-10 23:22:15 +00:00
TestTargetXMLArch.py Change the disabling of packet logging to be in TearDownHook lambdas. 2019-05-10 23:22:15 +00:00
TestThreadSelectionBug.py
TestWriteMemory.py The setUp/tearDown methods I added mssed up the test function; reorder. 2019-09-13 00:01:49 +00:00