2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
11 obj
.PutSTDIN("my data")
14 event
= lldb
.SBEvent()
16 obj
.ReportEventState(event
, None)
19 obj
.AppendEventStateReport(event
, lldb
.SBCommandReturnObject())
20 error
= lldb
.SBError()
21 obj
.RemoteAttachToProcessWithID(123, error
)
22 obj
.RemoteLaunch(None, None, None, None, None, None, 0, False, error
)
24 obj
.GetThreadAtIndex(0)
26 obj
.GetSelectedThread()
27 obj
.SetSelectedThread(lldb
.SBThread())
28 obj
.SetSelectedThreadByID(0)
31 obj
.GetExitDescription()
33 obj
.GetAddressByteSize()
40 obj
.ReadMemory(0x0000FFFF, 10, error
)
41 obj
.WriteMemory(0x0000FFFF, "hi data", error
)
42 obj
.ReadCStringFromMemory(0x0, 128, error
)
43 obj
.ReadUnsignedFromMemory(0xFF, 4, error
)
44 obj
.ReadPointerFromMemory(0xFF, error
)
46 obj
.GetDescription(lldb
.SBStream())
47 obj
.LoadImage(lldb
.SBFileSpec(), error
)
50 obj
.GetNumSupportedHardwareWatchpoints(error
)