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

import lldb


def fuzz_obj(obj):
    obj.GetModule()
    obj.GetCompileUnit()
    obj.GetFunction()
    obj.GetBlock()
    obj.GetLineEntry()
    obj.GetSymbol()
    obj.GetDescription(lldb.SBStream())
OpenPOWER on IntegriCloud