[Lldb-commits] [lldb] r141035 - in /lldb/trunk/test/python_api/default-constructor: sb_breakpoint.py sb_compileunit.py sb_debugger.py sb_instructionlist.py sb_module.py sb_process.py sb_stringlist.py sb_target.py sb_thread.py sb_type.py sb_value.py sb_valuelist.py

Johnny Chen johnny.chen at apple.com
Mon Oct 3 15:02:59 PDT 2011


Author: johnny
Date: Mon Oct  3 17:02:59 2011
New Revision: 141035

URL: http://llvm.org/viewvc/llvm-project?rev=141035&view=rev
Log:
Add fuzz calls for various iterators, too.

Modified:
    lldb/trunk/test/python_api/default-constructor/sb_breakpoint.py
    lldb/trunk/test/python_api/default-constructor/sb_compileunit.py
    lldb/trunk/test/python_api/default-constructor/sb_debugger.py
    lldb/trunk/test/python_api/default-constructor/sb_instructionlist.py
    lldb/trunk/test/python_api/default-constructor/sb_module.py
    lldb/trunk/test/python_api/default-constructor/sb_process.py
    lldb/trunk/test/python_api/default-constructor/sb_stringlist.py
    lldb/trunk/test/python_api/default-constructor/sb_target.py
    lldb/trunk/test/python_api/default-constructor/sb_thread.py
    lldb/trunk/test/python_api/default-constructor/sb_type.py
    lldb/trunk/test/python_api/default-constructor/sb_value.py
    lldb/trunk/test/python_api/default-constructor/sb_valuelist.py

Modified: lldb/trunk/test/python_api/default-constructor/sb_breakpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_breakpoint.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_breakpoint.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_breakpoint.py Mon Oct  3 17:02:59 2011
@@ -31,3 +31,5 @@
     obj.GetNumResolvedLocations()
     obj.GetNumLocations()
     obj.GetDescription(lldb.SBStream())
+    for bp_loc in obj:
+        print bp_loc

Modified: lldb/trunk/test/python_api/default-constructor/sb_compileunit.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_compileunit.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_compileunit.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_compileunit.py Mon Oct  3 17:02:59 2011
@@ -11,3 +11,5 @@
     obj.GetLineEntryAtIndex(0xffffffff)
     obj.FindLineEntryIndex(0, 0xffffffff, None)
     obj.GetDescription(lldb.SBStream())
+    for line_entry in obj:
+        print line_entry

Modified: lldb/trunk/test/python_api/default-constructor/sb_debugger.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_debugger.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_debugger.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_debugger.py Mon Oct  3 17:02:59 2011
@@ -52,3 +52,5 @@
     obj.SetCloseInputOnEOF(True)
     obj.SetCloseInputOnEOF(False)
     obj.Clear()
+    for target in obj:
+        print target

Modified: lldb/trunk/test/python_api/default-constructor/sb_instructionlist.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_instructionlist.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_instructionlist.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_instructionlist.py Mon Oct  3 17:02:59 2011
@@ -13,3 +13,5 @@
     obj.GetDescription(lldb.SBStream())
     obj.DumpEmulationForAllInstructions("armv7")
     obj.Clear()
+    for inst in obj:
+        print inst

Modified: lldb/trunk/test/python_api/default-constructor/sb_module.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_module.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_module.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_module.py Mon Oct  3 17:02:59 2011
@@ -17,3 +17,10 @@
     obj.GetSymbolAtIndex(sys.maxint)
     obj.FindFunctions("my_func", 0xffffffff, True, lldb.SBSymbolContextList())
     obj.FindGlobalVariables(lldb.SBTarget(), "my_global_var", 1)
+    for section in obj.section_iter():
+        print section
+    for symbol in obj.symbol_in_section_iter(lldb.SBSection()):
+        print symbol
+    for symbol in obj:
+        print symbol
+

Modified: lldb/trunk/test/python_api/default-constructor/sb_process.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_process.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_process.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_process.py Mon Oct  3 17:02:59 2011
@@ -41,3 +41,5 @@
     obj.LoadImage(lldb.SBFileSpec(), error)
     obj.UnloadImage(0)
     obj.Clear()
+    for thread in obj:
+        print thread

Modified: lldb/trunk/test/python_api/default-constructor/sb_stringlist.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_stringlist.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_stringlist.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_stringlist.py Mon Oct  3 17:02:59 2011
@@ -12,3 +12,5 @@
     obj.GetSize()
     obj.GetStringAtIndex(0xffffffff)
     obj.Clear()
+    for str in obj:
+        print str

Modified: lldb/trunk/test/python_api/default-constructor/sb_target.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_target.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_target.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_target.py Mon Oct  3 17:02:59 2011
@@ -51,3 +51,7 @@
     obj.GetBroadcaster()
     obj.GetDescription(lldb.SBStream(), lldb.eDescriptionLevelBrief)
     obj.Clear()
+    for module in obj.module_iter():
+        print module
+    for bp in obj.breakpoint_iter():
+        print bp

Modified: lldb/trunk/test/python_api/default-constructor/sb_thread.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_thread.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_thread.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_thread.py Mon Oct  3 17:02:59 2011
@@ -33,3 +33,5 @@
     obj.GetProcess()
     obj.GetDescription(lldb.SBStream())
     obj.Clear()
+    for frame in obj:
+        print frame

Modified: lldb/trunk/test/python_api/default-constructor/sb_type.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_type.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_type.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_type.py Mon Oct  3 17:02:59 2011
@@ -18,4 +18,5 @@
     obj.GetDescription(lldb.SBStream())
     obj.IsPointerType(None)
     lldb.SBType.IsPointerType(None)
-
+    for child_type in obj:
+        print child_type

Modified: lldb/trunk/test/python_api/default-constructor/sb_value.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_value.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_value.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_value.py Mon Oct  3 17:02:59 2011
@@ -33,3 +33,5 @@
     obj.GetDescription(stream)
     obj.GetExpressionPath(stream)
     obj.GetExpressionPath(stream, True)
+    for child_val in obj:
+        print child_val

Modified: lldb/trunk/test/python_api/default-constructor/sb_valuelist.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_valuelist.py?rev=141035&r1=141034&r2=141035&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/sb_valuelist.py (original)
+++ lldb/trunk/test/python_api/default-constructor/sb_valuelist.py Mon Oct  3 17:02:59 2011
@@ -10,3 +10,5 @@
     obj.GetSize()
     obj.GetValueAtIndex(100)
     obj.FindValueObjectByUID(200)
+    for val in obj:
+        print val





More information about the lldb-commits mailing list