summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor/sb_instruction.py
blob: 91d2930cb2fa464b1005d0cbf6d3fa49a696e075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""
Fuzz tests an object after the default construction to make sure it does not crash lldb.
"""

import sys
import lldb

def fuzz_obj(obj):
    obj.GetAddress()
    obj.GetByteSize
    obj.DoesBranch()
    obj.Print(None)
    obj.GetDescription(lldb.SBStream())
    obj.EmulateWithFrame(lldb.SBFrame(), 0)
    obj.DumpEmulation("armv7")
    obj.TestEmulation(lldb.SBStream(), "my-file")
OpenPOWER on IntegriCloud