1""" 2Fuzz tests an object after the default construction to make sure it does not crash lldb. 3""" 4 5import lldb 6 7 8def fuzz_obj(obj): 9 obj.GetAddress() 10 obj.GetByteSize() 11 obj.DoesBranch() 12 try: 13 obj.Print(None) 14 except Exception: 15 pass 16 obj.GetDescription(lldb.SBStream()) 17 obj.EmulateWithFrame(lldb.SBFrame(), 0) 18 obj.DumpEmulation("armv7") 19 obj.TestEmulation(lldb.SBStream(), "my-file") 20