aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/modify-python-lldb.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-05 01:35:49 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-05 01:35:49 +0000
commit05c998cedabef50154b8db042410f49b374b511a (patch)
tree3688676efac8d022ae3a6f9707129762b7c82b42 /lldb/scripts/Python/modify-python-lldb.py
parentf1af1ed6d2d56b4e9e7b2c4744ffdf104b9c37cb (diff)
downloadllvm-05c998cedabef50154b8db042410f49b374b511a.zip
llvm-05c998cedabef50154b8db042410f49b374b511a.tar.gz
llvm-05c998cedabef50154b8db042410f49b374b511a.tar.bz2
The recently introduced SBTypeList is also iterable.
This patch takes some time because the old Python constructor pattern was not a valid one, and breaks with SBTypeList's __init__ signature. Oops. llvm-svn: 136958
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
-rw-r--r--lldb/scripts/Python/modify-python-lldb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py
index 9f5f8c9..e716ee6 100644
--- a/lldb/scripts/Python/modify-python-lldb.py
+++ b/lldb/scripts/Python/modify-python-lldb.py
@@ -171,7 +171,8 @@ d = { 'SBBreakpoint': ('GetNumLocations', 'GetLocationAtIndex'),
'SBInstructionList': ('GetSize', 'GetInstructionAtIndex'),
'SBStringList': ('GetSize', 'GetStringAtIndex',),
'SBSymbolContextList': ('GetSize', 'GetContextAtIndex'),
- 'SBValueList': ('GetSize', 'GetValueAtIndex'),
+ 'SBTypeList': ('GetSize', 'GetTypeAtIndex'),
+ 'SBValueList': ('GetSize', 'GetValueAtIndex'),
'SBType': ('GetNumberChildren', 'GetChildAtIndex'),
'SBValue': ('GetNumChildren', 'GetChildAtIndex'),
@@ -240,7 +241,7 @@ with open(output_name, 'r') as f_in:
class_pattern = re.compile("^class (SB.*)\(_object\):$")
# The pattern for recognizing the beginning of the __init__ method definition.
-init_pattern = re.compile("^ def __init__\(self, \*args\):")
+init_pattern = re.compile("^ def __init__\(self.*\):")
# The pattern for recognizing the beginning of the IsValid method definition.
isvalid_pattern = re.compile("^ def IsValid\(")