aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/modify-python-lldb.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-07-14 00:17:49 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-07-14 00:17:49 +0000
commitfa181f4fdb5f357e4cbc76b3dc9cbf0baa46491e (patch)
tree65f7d1a6124efe89c3126cc4c5f069291f808ac0 /lldb/scripts/Python/modify-python-lldb.py
parentd7e9937175da8d4546c5656ea36a9d9fc1d248d5 (diff)
downloadllvm-fa181f4fdb5f357e4cbc76b3dc9cbf0baa46491e.zip
llvm-fa181f4fdb5f357e4cbc76b3dc9cbf0baa46491e.tar.gz
llvm-fa181f4fdb5f357e4cbc76b3dc9cbf0baa46491e.tar.bz2
Add some more docstrings (includng example usages) to SBTarget.h.
Add logic to modify-python-lldb to correct swig's transformation of 'char **argv' and 'char **envp' to 'char argv' and 'char envp' by morphing them into the 'list argv' and 'list envp' (as a list of Python strings). llvm-svn: 135114
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
-rw-r--r--lldb/scripts/Python/modify-python-lldb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py
index 139d981..c33a3dd 100644
--- a/lldb/scripts/Python/modify-python-lldb.py
+++ b/lldb/scripts/Python/modify-python-lldb.py
@@ -47,6 +47,9 @@ def char_to_str_xform(line):
"""This transforms the 'char', i.e, 'char *' to 'str', Python string."""
line = line.replace(' char', ' str')
line = line.replace('char ', 'str ')
+ # Special case handling of 'char **argv' and 'char **envp'.
+ line = line.replace('str argv', 'list argv')
+ line = line.replace('str envp', 'list envp')
return line
#