xref: /llvm-project/lldb/test/API/commands/command/script/import/bar/bar.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
199451b44SJordan Rupprechtdef bar_function(debugger, args, result, dict):
299451b44SJordan Rupprecht    global UtilityModule
399451b44SJordan Rupprecht    print(UtilityModule.barutil_function("bar told me " + args), file=result)
499451b44SJordan Rupprecht    return None
599451b44SJordan Rupprecht
699451b44SJordan Rupprecht
799451b44SJordan Rupprechtdef __lldb_init_module(debugger, session_dict):
899451b44SJordan Rupprecht    global UtilityModule
999451b44SJordan Rupprecht    UtilityModule = __import__("barutil")
10*2238dcc3SJonas Devlieghere    debugger.HandleCommand("command script add -f bar.bar_function barothercmd")
1199451b44SJordan Rupprecht    return None
12