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.IsValid() 10 obj.GetName() 11 obj.FindSubSection("hello_section_name") 12 obj.GetNumSubSections() 13 obj.GetSubSectionAtIndex(600) 14 obj.GetFileAddress() 15 obj.GetByteSize() 16 obj.GetFileOffset() 17 obj.GetFileByteSize() 18 obj.GetSectionData(1000, 100) 19 obj.GetSectionType() 20 obj.GetDescription(lldb.SBStream()) 21 for subsec in obj: 22 print subsec 23