aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/python_api/default-constructor/sb_compileunit.py
blob: 0c27c94b752a844eb6bdda421bb59cea25774f27 (plain) (blame)
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.GetFileSpec()
    obj.GetNumLineEntries()
    obj.GetLineEntryAtIndex(0xffffffff)
    obj.FindLineEntryIndex(0, 0xffffffff, None)
    obj.GetDescription(lldb.SBStream())
    for line_entry in obj:
        s = str(line_entry)