mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 20:10:50 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user