forked from OSchip/llvm-project
Add fuzz calls for various iterators, too.
llvm-svn: 141035
This commit is contained in:
parent
892427e2fa
commit
b92574ffb9
|
@ -31,3 +31,5 @@ def fuzz_obj(obj):
|
|||
obj.GetNumResolvedLocations()
|
||||
obj.GetNumLocations()
|
||||
obj.GetDescription(lldb.SBStream())
|
||||
for bp_loc in obj:
|
||||
print bp_loc
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -52,3 +52,5 @@ def fuzz_obj(obj):
|
|||
obj.SetCloseInputOnEOF(True)
|
||||
obj.SetCloseInputOnEOF(False)
|
||||
obj.Clear()
|
||||
for target in obj:
|
||||
print target
|
||||
|
|
|
@ -13,3 +13,5 @@ def fuzz_obj(obj):
|
|||
obj.GetDescription(lldb.SBStream())
|
||||
obj.DumpEmulationForAllInstructions("armv7")
|
||||
obj.Clear()
|
||||
for inst in obj:
|
||||
print inst
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -41,3 +41,5 @@ def fuzz_obj(obj):
|
|||
obj.LoadImage(lldb.SBFileSpec(), error)
|
||||
obj.UnloadImage(0)
|
||||
obj.Clear()
|
||||
for thread in obj:
|
||||
print thread
|
||||
|
|
|
@ -12,3 +12,5 @@ def fuzz_obj(obj):
|
|||
obj.GetSize()
|
||||
obj.GetStringAtIndex(0xffffffff)
|
||||
obj.Clear()
|
||||
for str in obj:
|
||||
print str
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -33,3 +33,5 @@ def fuzz_obj(obj):
|
|||
obj.GetProcess()
|
||||
obj.GetDescription(lldb.SBStream())
|
||||
obj.Clear()
|
||||
for frame in obj:
|
||||
print frame
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -10,3 +10,5 @@ def fuzz_obj(obj):
|
|||
obj.GetSize()
|
||||
obj.GetValueAtIndex(100)
|
||||
obj.FindValueObjectByUID(200)
|
||||
for val in obj:
|
||||
print val
|
||||
|
|
Loading…
Reference in New Issue