2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
16 obj
.SetFormat(lldb
.eFormatBoolean
)
19 obj
.GetValueDidChange()
21 obj
.GetObjectDescription()
23 obj
.SetValueFromCString("my_new_value")
24 obj
.GetChildAtIndex(1)
25 obj
.GetChildAtIndex(2, lldb
.eNoDynamicValues
, False)
26 obj
.GetIndexOfChildWithName("my_first_child")
27 obj
.GetChildMemberWithName("my_first_child")
28 obj
.GetChildMemberWithName("my_first_child", lldb
.eNoDynamicValues
)
32 obj
.TypeIsPointerType()
33 stream
= lldb
.SBStream()
34 obj
.GetDescription(stream
)
35 obj
.GetExpressionPath(stream
)
36 obj
.GetExpressionPath(stream
, True)
37 error
= lldb
.SBError()
38 obj
.Watch(True, True, False, error
)
39 obj
.WatchPointee(True, False, True, error
)
42 error
= lldb
.SBError()
43 obj
.GetValueAsSigned(error
, 0)
44 obj
.GetValueAsUnsigned(error
, 0)
45 obj
.GetValueAsSigned(0)
46 obj
.GetValueAsUnsigned(0)
47 obj
.GetDynamicValue(lldb
.eNoDynamicValues
)
50 invalid_type
= lldb
.SBType()
51 obj
.CreateChildAtOffset("a", 12, invalid_type
)
52 obj
.Cast(invalid_type
)
53 obj
.CreateValueFromExpression("pt->x", "pt->x")
54 obj
.CreateValueFromAddress("x", 0x123, invalid_type
)
55 invalid_data
= lldb
.SBData()
56 obj
.CreateValueFromData("x", invalid_data
, invalid_type
)
57 obj
.GetValueForExpressionPath("[0]")
61 obj
.GetPointeeData(0, 1)