Add fuzz calls for various iterators, too.

llvm-svn: 141035
This commit is contained in:
Johnny Chen 2011-10-03 22:02:59 +00:00
parent 892427e2fa
commit b92574ffb9
12 changed files with 31 additions and 1 deletions

View File

@ -31,3 +31,5 @@ def fuzz_obj(obj):
obj.GetNumResolvedLocations()
obj.GetNumLocations()
obj.GetDescription(lldb.SBStream())
for bp_loc in obj:
print bp_loc

View File

@ -11,3 +11,5 @@ def fuzz_obj(obj):
obj.GetLineEntryAtIndex(0xffffffff)
obj.FindLineEntryIndex(0, 0xffffffff, None)
obj.GetDescription(lldb.SBStream())
for line_entry in obj:
print line_entry

View File

@ -52,3 +52,5 @@ def fuzz_obj(obj):
obj.SetCloseInputOnEOF(True)
obj.SetCloseInputOnEOF(False)
obj.Clear()
for target in obj:
print target

View File

@ -13,3 +13,5 @@ def fuzz_obj(obj):
obj.GetDescription(lldb.SBStream())
obj.DumpEmulationForAllInstructions("armv7")
obj.Clear()
for inst in obj:
print inst

View File

@ -17,3 +17,10 @@ def fuzz_obj(obj):
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

View File

@ -41,3 +41,5 @@ def fuzz_obj(obj):
obj.LoadImage(lldb.SBFileSpec(), error)
obj.UnloadImage(0)
obj.Clear()
for thread in obj:
print thread

View File

@ -12,3 +12,5 @@ def fuzz_obj(obj):
obj.GetSize()
obj.GetStringAtIndex(0xffffffff)
obj.Clear()
for str in obj:
print str

View File

@ -51,3 +51,7 @@ def fuzz_obj(obj):
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

View File

@ -33,3 +33,5 @@ def fuzz_obj(obj):
obj.GetProcess()
obj.GetDescription(lldb.SBStream())
obj.Clear()
for frame in obj:
print frame

View File

@ -18,4 +18,5 @@ def fuzz_obj(obj):
obj.GetDescription(lldb.SBStream())
obj.IsPointerType(None)
lldb.SBType.IsPointerType(None)
for child_type in obj:
print child_type

View File

@ -33,3 +33,5 @@ def fuzz_obj(obj):
obj.GetDescription(stream)
obj.GetExpressionPath(stream)
obj.GetExpressionPath(stream, True)
for child_val in obj:
print child_val

View File

@ -10,3 +10,5 @@ def fuzz_obj(obj):
obj.GetSize()
obj.GetValueAtIndex(100)
obj.FindValueObjectByUID(200)
for val in obj:
print val