summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/command_script/import/bar/bar.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/command_script/import/bar/bar.py')
-rw-r--r--lldb/test/functionalities/command_script/import/bar/bar.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/test/functionalities/command_script/import/bar/bar.py b/lldb/test/functionalities/command_script/import/bar/bar.py
new file mode 100644
index 00000000000..269fc935204
--- /dev/null
+++ b/lldb/test/functionalities/command_script/import/bar/bar.py
@@ -0,0 +1,10 @@
+def bar_function(debugger, args, result, dict):
+ global UtilityModule
+ result.Printf(UtilityModule.barutil_function("bar told me " + args))
+ 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 \ No newline at end of file
OpenPOWER on IntegriCloud