]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/python_api/default-constructor/sb_symbolcontext.py
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / python_api / default-constructor / sb_symbolcontext.py
1 """
2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
3 """
4
5 import sys
6 import lldb
7
8
9 def fuzz_obj(obj):
10     obj.GetModule()
11     obj.GetCompileUnit()
12     obj.GetFunction()
13     obj.GetBlock()
14     obj.GetLineEntry()
15     obj.GetSymbol()
16     obj.GetDescription(lldb.SBStream())