[Lldb-commits] [lldb] r136958 - /lldb/trunk/scripts/Python/modify-python-lldb.py

Johnny Chen johnny.chen at apple.com
Thu Aug 4 18:35:50 PDT 2011


Author: johnny
Date: Thu Aug  4 20:35:49 2011
New Revision: 136958

URL: http://llvm.org/viewvc/llvm-project?rev=136958&view=rev
Log:
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.

Modified:
    lldb/trunk/scripts/Python/modify-python-lldb.py

Modified: lldb/trunk/scripts/Python/modify-python-lldb.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/modify-python-lldb.py?rev=136958&r1=136957&r2=136958&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/modify-python-lldb.py (original)
+++ lldb/trunk/scripts/Python/modify-python-lldb.py Thu Aug  4 20:35:49 2011
@@ -171,7 +171,8 @@
       '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 @@
 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\(")





More information about the lldb-commits mailing list