AMDGPU: Allow f16/bf16 for DS_READ_TR16_B64 gfx950 builtins (#118297)
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_breakpoint.py
blob3bdf5879d30d69d826cdfb2312b7b48aaf470439
1 """
2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
3 """
5 import sys
6 import lldb
9 def fuzz_obj(obj):
10 obj.GetID()
11 obj.ClearAllBreakpointSites()
12 obj.FindLocationByAddress(sys.maxsize)
13 obj.FindLocationIDByAddress(sys.maxsize)
14 obj.FindLocationByID(0)
15 obj.GetLocationAtIndex(0)
16 obj.SetEnabled(True)
17 obj.IsEnabled()
18 obj.GetHitCount()
19 obj.SetIgnoreCount(1)
20 obj.GetIgnoreCount()
21 obj.SetCondition("i >= 10")
22 obj.GetCondition()
23 obj.SetThreadID(0)
24 obj.GetThreadID()
25 obj.SetThreadIndex(0)
26 obj.GetThreadIndex()
27 obj.SetThreadName("worker thread")
28 obj.GetThreadName()
29 obj.SetQueueName("my queue")
30 obj.GetQueueName()
31 obj.SetScriptCallbackFunction(None)
32 obj.SetScriptCallbackBody(None)
33 obj.GetNumResolvedLocations()
34 obj.GetNumLocations()
35 obj.GetDescription(lldb.SBStream())
36 for bp_loc in obj:
37 s = str(bp_loc)