teak-llvm/lldb/source/Plugins/Process/gdb-remote
Walter Erquinigo 48a50ee034 [android/process list] support showing process arguments
Summary:
The qfProcessInfo and qsProcessInfo packets currently don't set the processes' arguments, however the platform process list -v command tries to print it.
In this diff I'm adding the arguments as part of the packet, and now the command shows the arguments just like on mac.

On Mac:

507    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /usr/libexec/secd
503    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /usr/libexec/secinitd
501    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /usr/libexec/languageassetd --firstLogin
497    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /usr/libexec/trustd --agent
496    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /usr/libexec/lsd
494    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /System/Library/Frameworks/CoreTelephony.framework/Support/CommCenter -L
491    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /usr/sbin/distnoted agent
489    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /usr/libexec/UserEventAgent (Aqua)
484    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /usr/sbin/cfprefsd agent
483    1      wallace    1876110778 wallace    1876110778 x86_64-apple-macosx      /System/Library/Frameworks/LocalAuthentication.framework/Support/coreauthd
On android:

1561   1016   root       0                     0          aarch64-unknown-linux-android  /system/bin/ip6tables-restore--noflush -w -v
1805   982    1000       1000                  1000                                      android:drmService
1811   982    10189      10189                 10189                                     com.qualcomm.embms:remote
1999   1      1000       1000                  1000       aarch64-unknown-linux-android  /system/bin/tlc_serverCCM
2332   982    10038      10038                 10038                                     com.android.systemui
2378   983    1053       1053                  1053                                      webview_zygote
2448   982    5013       5013                  5013                                      com.sec.location.nsflp2
2465   982    10027      10027                 10027                                     com.google.android.gms.persistent

Differential Revision:  https://reviews.llvm.org/D68293

llvm-svn: 375029
2019-10-16 18:47:05 +00:00
..
CMakeLists.txt [lldb] Qualify includes of Properties[Enum].inc files. NFC 2019-07-29 17:22:10 +00:00
GDBRemoteClientBase.cpp [NFC] Return llvm::StringRef from StringExtractor::GetStringRef. 2019-08-21 04:55:56 +00:00
GDBRemoteClientBase.h [GDBRemote] Reflow comments and improve docs. 2019-07-31 20:47:44 +00:00
GDBRemoteCommunication.cpp [Reproducer] Move GDB Remote Packet into Utility. (NFC) 2019-09-13 23:14:10 +00:00
GDBRemoteCommunication.h typedef enum -> enum 2019-05-14 08:55:50 +00:00
GDBRemoteCommunicationClient.cpp [android/process list] support showing process arguments 2019-10-16 18:47:05 +00:00
GDBRemoteCommunicationClient.h uint32_t options -> File::OpenOptions options 2019-10-14 20:15:34 +00:00
GDBRemoteCommunicationHistory.cpp [NFC] Move dumping into GDBRemotePacket 2019-09-16 20:02:57 +00:00
GDBRemoteCommunicationHistory.h [Reproducer] Move GDB Remote Packet into Utility. (NFC) 2019-09-13 23:14:10 +00:00
GDBRemoteCommunicationReplayServer.cpp [Reproducer] Move GDB Remote Packet into Utility. (NFC) 2019-09-13 23:14:10 +00:00
GDBRemoteCommunicationReplayServer.h [Reproducer] Move GDB Remote Packet into Utility. (NFC) 2019-09-13 23:14:10 +00:00
GDBRemoteCommunicationServer.cpp [NFC] Return llvm::StringRef from StringExtractor::GetStringRef. 2019-08-21 04:55:56 +00:00
GDBRemoteCommunicationServer.h Create a generic handler for Xfer packets 2019-06-10 20:59:58 +00:00
GDBRemoteCommunicationServerCommon.cpp [android/process list] support showing process arguments 2019-10-16 18:47:05 +00:00
GDBRemoteCommunicationServerCommon.h gdb-remote: reduce some inclusion of Target/Process.h 2019-05-02 18:15:03 +00:00
GDBRemoteCommunicationServerLLGS.cpp [JSON] Don't wrap json::Array in a value (NFC) 2019-10-03 20:10:56 +00:00
GDBRemoteCommunicationServerLLGS.h Revert "Revert "Implement xfer:libraries-svr4:read packet"" 2019-07-23 20:40:30 +00:00
GDBRemoteCommunicationServerPlatform.cpp [JSON] Use LLVM's library for encoding JSON in GDBRemoteCommunicationServerPlatform 2019-10-02 18:02:29 +00:00
GDBRemoteCommunicationServerPlatform.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
GDBRemoteRegisterContext.cpp [Logging] Replace Log::Printf with LLDB_LOG macro (NFC) 2019-07-24 17:56:10 +00:00
GDBRemoteRegisterContext.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ProcessGDBRemote.cpp [JSON] Use LLVM's library for encoding JSON in StructuredData 2019-10-01 17:41:48 +00:00
ProcessGDBRemote.h [Reproducer] Move GDB Remote Packet into Utility. (NFC) 2019-09-13 23:14:10 +00:00
ProcessGDBRemoteLog.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ProcessGDBRemoteLog.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ProcessGDBRemoteProperties.td [lldb] Qualify includes of Properties[Enum].inc files. NFC 2019-07-29 17:22:10 +00:00
ThreadGDBRemote.cpp [Logging] Replace Log::Printf with LLDB_LOG macro (NFC) 2019-07-24 17:56:10 +00:00
ThreadGDBRemote.h gdb-remote: reduce some inclusion of Target/Process.h 2019-05-02 18:15:03 +00:00