1 """ 2 Fuzz tests an object after the default construction to make sure it does not crash lldb. 3 """ 4 5 import sys 6 import lldb 7 8 def 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