1"""
2Fuzz tests an object after the default construction to make sure it does not crash lldb.
3"""
4
5import sys
6import lldb
7
8def fuzz_obj(obj):
9    obj.GetFileAddress()
10    obj.GetLoadAddress(lldb.SBTarget())
11    obj.SetLoadAddress(0xffff, lldb.SBTarget())
12    obj.OffsetAddress(sys.maxint)
13    obj.GetDescription(lldb.SBStream())
14    obj.GetSection()
15    obj.GetSymbolContext(lldb.eSymbolContextEverything)
16    obj.GetModule()
17    obj.GetCompileUnit()
18    obj.GetFunction()
19    obj.GetBlock()
20    obj.GetSymbol()
21    obj.GetLineEntry()
22    obj.Clear()
23