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.BroadcastEventByType(lldb.eBreakpointEventTypeInvalidType, True) 10 obj.BroadcastEvent(lldb.SBEvent(), False) 11 listener = lldb.SBListener("fuzz_testing") 12 obj.AddInitialEventsToListener(listener, 0xffffffff) 13 obj.AddInitialEventsToListener(listener, 0) 14 obj.AddListener(listener, 0xffffffff) 15 obj.AddListener(listener, 0) 16 obj.GetName() 17 obj.EventTypeHasListeners(0) 18 obj.RemoveListener(listener, 0xffffffff) 19 obj.RemoveListener(listener, 0) 20 obj.Clear() 21