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