summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor/sb_compileunit.py
blob: 1bee4d5a39dcc0e0142ff282ca13e5e2cee9f883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
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.GetFileSpec()
    obj.GetNumLineEntries()
    obj.GetLineEntryAtIndex(0xffffffff)
    obj.FindLineEntryIndex(0, 0xffffffff, None)
    obj.GetDescription(lldb.SBStream())
OpenPOWER on IntegriCloud