aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/command_script/import/bar/bar.py
blob: bbc41f3b217d17b50f93a64f163f2704556a8eca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
from __future__ import print_function

def bar_function(debugger, args, result, dict):
	global UtilityModule
	print(UtilityModule.barutil_function("bar told me " + args), file=result)
	return None

def __lldb_init_module(debugger, session_dict):
	global UtilityModule
	UtilityModule = __import__("barutil")
	debugger.HandleCommand("command script add -f bar.bar_function barothercmd")
	return None