]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/functionalities/command_script/import/bar/bar.py
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / functionalities / command_script / import / bar / bar.py
1 from __future__ import print_function
2
3
4 def bar_function(debugger, args, result, dict):
5     global UtilityModule
6     print(UtilityModule.barutil_function("bar told me " + args), file=result)
7     return None
8
9
10 def __lldb_init_module(debugger, session_dict):
11     global UtilityModule
12     UtilityModule = __import__("barutil")
13     debugger.HandleCommand(
14         "command script add -f bar.bar_function barothercmd")
15     return None