1from __future__ import print_function 2 3 4def 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 10def __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 16