xref: /llvm-project/lldb/test/API/python_api/default-constructor/sb_watchpoint.py (revision a3fe9221ab1541a88e784507433cfe7fd13688fd)
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.GetID()
10    obj.IsValid()
11    obj.GetWatchAddress()
12    obj.GetWatchSize()
13    obj.SetEnabled(True)
14    obj.IsEnabled()
15    obj.GetHitCount()
16    obj.GetIgnoreCount()
17    obj.SetIgnoreCount(5)
18    obj.GetDescription(lldb.SBStream(), lldb.eDescriptionLevelVerbose)
19    obj.SetCondition("shouldWeStop()")
20    obj.GetCondition()
21