xref: /llvm-project/lldb/test/API/commands/command/script/import/bar/bar.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1def bar_function(debugger, args, result, dict):
2    global UtilityModule
3    print(UtilityModule.barutil_function("bar told me " + args), file=result)
4    return None
5
6
7def __lldb_init_module(debugger, session_dict):
8    global UtilityModule
9    UtilityModule = __import__("barutil")
10    debugger.HandleCommand("command script add -f bar.bar_function barothercmd")
11    return None
12