diff options
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python/Inputs')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/Inputs/hello.split | 10 | ||||
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/Inputs/relative.split | 20 |
2 files changed, 30 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Inputs/hello.split b/lldb/test/Shell/ScriptInterpreter/Python/Inputs/hello.split new file mode 100644 index 000000000000..510d5f77ec15 --- /dev/null +++ b/lldb/test/Shell/ScriptInterpreter/Python/Inputs/hello.split @@ -0,0 +1,10 @@ +#--- hello.in +command script import -c baz.hello +#--- hello.py +import lldb + +def hello(debugger, command, result, internal_dict): + print("Hello, World!") + +def __lldb_init_module(debugger, internal_dict): + debugger.HandleCommand('command script add -f baz.hello.hello hello') diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Inputs/relative.split b/lldb/test/Shell/ScriptInterpreter/Python/Inputs/relative.split new file mode 100644 index 000000000000..7a5c89c51404 --- /dev/null +++ b/lldb/test/Shell/ScriptInterpreter/Python/Inputs/relative.split @@ -0,0 +1,20 @@ +#--- magritte.in +command script import magritte +#--- magritte.py +import lldb + +def magritte(debugger, command, result, internal_dict): + print("Ceci n'est pas une pipe") + +def __lldb_init_module(debugger, internal_dict): + debugger.HandleCommand('command script add -f magritte.magritte magritte') +#--- zip.in +command script import -c zip +#--- zip.py +import lldb + +def zip(debugger, command, result, internal_dict): + print("95126") + +def __lldb_init_module(debugger, internal_dict): + debugger.HandleCommand('command script add -f zip.zip zip') |
