[lldb-dev] [patch] lldb-platform-work branch: fixes for the 'platform process list' command output

Viktor Kutuzov vkutuzov at accesssoftek.com
Wed Apr 25 15:16:17 PDT 2012


Hi everyone,

please find attached patch, which fixes some bugs and problems with the output process list for the 'platform process list' command. This patch provides the following changes:

- fixed output into a column for the wide strings (cutting of them)
- fixed output for the arch and name columns (wrong data, displaying of a triple instead of the arch name)

Original output (non-verbose):

(lldb) platform process list
137 matching processes were found on "freebsd1.accesssoftek.com"
PID    PARENT USER       ARCH    NAME
====== ====== ========== ======= ============================
67334  1510   root       6       x86_64-unknown-freebsd9.0 sleep
67321  24196  root       6       x86_64-unknown-freebsd9.0 gedit
...

Fixed output (non-verbose):

(lldb) platform process list
134 matching processes were found on "freebsd1.accesssoftek.com"
PID    PARENT USER       ARCH    NAME
====== ====== ========== ======== ============================
68508  1510   root       x86_64   sleep
67514  1      root       x86_64   gedit
...

- added 'args' field for the returned data into the remote protocol to display the process arguments in the verbose output

Original output (verbose):

(lldb) platform process list -v
139 matching processes were found on "freebsd1.accesssoftek.com"
PID    PARENT USER       GROUP      EFF USER   EFF GROUP  TRIPLE                   ARGUMENTS
====== ====== ========== ========== ========== ========== ======================== ============================
68717  1510   root       wheel      root       wheel      x86_64-unknown-freebsd9.0 
68704  24196  root       wheel      root       wheel      x86_64-unknown-freebsd9.0 
...

Fixed output (verbose):

(lldb) platform process list -v
134 matching processes were found on "freebsd1.accesssoftek.com"
PID    PARENT USER       GROUP      EFF USER   EFF GROUP  TRIPLE                    ARGUMENTS
====== ====== ========== ========== ========== ========== ========================= ============================
68884  1510   root       wheel      root       wheel      x86_64-unknown-freebsd9.0 300
67514  1      root       wheel      root       wheel      x86_64-unknown-freebsd9.0 /home/projects/llvm-lldb/include/llvm/ADT/Triple.h
...

Would somebody review this patch and apply if it is ok?

Thank.
Viktor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lldb-platform-added-args-param.patch
Type: application/octet-stream
Size: 5027 bytes
Desc: lldb-platform-added-args-param.patch
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20120425/83c3921f/attachment.obj>


More information about the lldb-dev mailing list