[Lldb-commits] [lldb] r311679 - Fixed a typo in the example (getName -> GetName)

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 24 11:01:50 PDT 2017


Author: jingham
Date: Thu Aug 24 11:01:50 2017
New Revision: 311679

URL: http://llvm.org/viewvc/llvm-project?rev=311679&view=rev
Log:
Fixed a typo in the example (getName -> GetName)
but while I was at it I converted the example to use
properties, since that's much nicer looking.

Modified:
    lldb/trunk/scripts/interface/SBValue.i

Modified: lldb/trunk/scripts/interface/SBValue.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/interface/SBValue.i?rev=311679&r1=311678&r2=311679&view=diff
==============================================================================
--- lldb/trunk/scripts/interface/SBValue.i (original)
+++ lldb/trunk/scripts/interface/SBValue.i Thu Aug 24 11:01:50 2017
@@ -16,15 +16,15 @@ SBValue supports iteration through its c
 as an SBValue.  For example, we can get the general purpose registers of a
 frame as an SBValue, and iterate through all the registers,
 
-    registerSet = frame.GetRegisters() # Returns an SBValueList.
+    registerSet = frame.registers # Returns an SBValueList.
     for regs in registerSet:
-        if 'general purpose registers' in regs.getName().lower():
+        if 'general purpose registers' in regs.name.lower():
             GPRs = regs
             break
 
-    print('%s (number of children = %d):' % (GPRs.GetName(), GPRs.GetNumChildren()))
+    print('%s (number of children = %d):' % (GPRs.name, GPRs.num_children))
     for reg in GPRs:
-        print('Name: ', reg.GetName(), ' Value: ', reg.GetValue())
+        print('Name: ', reg.name, ' Value: ', reg.value)
 
 produces the output:
 




More information about the lldb-commits mailing list