12 lines · python
1def bar_function(debugger, args, result, dict):2 global UtilityModule3 print(UtilityModule.barutil_function("bar told me " + args), file=result)4 return None5 6 7def __lldb_init_module(debugger, session_dict):8 global UtilityModule9 UtilityModule = __import__("barutil")10 debugger.HandleCommand("command script add -f bar.bar_function barothercmd")11 return None12