Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_broadcaster.py
blob526e9fdbf04d32a0bba165bf59f82756a65cfa7f
1 """
2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
3 """
5 import lldb
8 def 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()