17e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen""" 27e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny ChenFuzz tests an object after the default construction to make sure it does not crash lldb. 37e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen""" 47e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen 57e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chenimport sys 67e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chenimport lldb 77e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen 87e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chendef fuzz_obj(obj): 97e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.IsValid() 107e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetName() 117e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.FindSubSection("hello_section_name") 127e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetNumSubSections() 137e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetSubSectionAtIndex(600) 147e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetFileAddress() 157e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetByteSize() 167e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetFileOffset() 177e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetFileByteSize() 187e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetSectionData(1000, 100) 197e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetSectionType() 207e98e09fc07cf55899d07c130530a77ecc58c5c8Johnny Chen obj.GetDescription(lldb.SBStream()) 21d94f973fe1718c0a886d4808732da148e240658dJohnny Chen for subsec in obj: 22d94f973fe1718c0a886d4808732da148e240658dJohnny Chen print subsec 23