brintos

brintos / llvm-project-archived public Read only

0
0
Text · 428 B · fbfb231 Raw
20 lines · python
1"""2Fuzz tests an object after the default construction to make sure it does not crash lldb.3"""4 5import lldb6 7 8def fuzz_obj(obj):9    obj.GetAddress()10    obj.GetByteSize()11    obj.DoesBranch()12    try:13        obj.Print(None)14    except Exception:15        pass16    obj.GetDescription(lldb.SBStream())17    obj.EmulateWithFrame(lldb.SBFrame(), 0)18    obj.DumpEmulation("armv7")19    obj.TestEmulation(lldb.SBStream(), "my-file")20