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.

Attachment: lldb-platform-added-args-param.patch
Description: lldb-platform-added-args-param.patch

_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to