From 05c998cedabef50154b8db042410f49b374b511a Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 5 Aug 2011 01:35:49 +0000 Subject: 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 --- lldb/scripts/Python/modify-python-lldb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lldb/scripts/Python/modify-python-lldb.py') 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\(") -- cgit v1.1