From a9dbf4325e9b97ca4c68baf4d05fad55bd194332 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 17 Oct 2011 21:45:27 +0000 Subject: this patch introduces a new command script import command which takes as input a filename for a Python script and imports the module contained in that file. the containing directory is added to the Python path such that dependencies are honored. also, the module may contain an __lldb_init_module(debugger,dict) function, which gets called after importing, and which can somehow initialize the module's interaction with lldb llvm-svn: 142283 --- lldb/test/functionalities/command_script/import/foo/foo.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 lldb/test/functionalities/command_script/import/foo/foo.py (limited to 'lldb/test/functionalities/command_script/import/foo/foo.py') diff --git a/lldb/test/functionalities/command_script/import/foo/foo.py b/lldb/test/functionalities/command_script/import/foo/foo.py new file mode 100644 index 00000000000..852bd83c2ee --- /dev/null +++ b/lldb/test/functionalities/command_script/import/foo/foo.py @@ -0,0 +1,3 @@ +def foo_function(debugger, args, result, dict): + result.Printf("foo says " + args) + return None -- cgit v1.2.3