summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/ScriptInterpreter
Commit message (Collapse)AuthorAgeFilesLines
* [lldb/Lua] Support loading Lua modulesJonas Devlieghere2020-01-102-0/+20
| | | | | | Implements the command script import command for Lua. Differential revision: https://reviews.llvm.org/D71825
* [lldb/lua] Make convenience_variables.test compatible with lua-5.1Pavel Labath2020-01-101-5/+5
|
* [lldb/Lua] Make lldb.debugger et al available to LuaJonas Devlieghere2020-01-096-0/+49
| | | | | | | | The Python script interpreter makes the current debugger, target, process, thread and frame available to interactive scripting sessions through convenience variables. This patch does the same for Lua. Differential revision: https://reviews.llvm.org/D71801
* [lldb/lua] Fix bindings.test for lua-5.1Pavel Labath2019-12-231-1/+1
| | | | | string.format("%s", true) only works since lua-5.2. Make the print statement more portable.
* [lldb/ScriptInterpreter] Unify error message for command script importJonas Devlieghere2019-12-221-0/+2
| | | | | Rather than checking for Python explicitly, let the script interpreter handle things and print an error if the functionality is not supported.
* [lldb/ScriptInterpreter] Fix stale/bogus error messagesJonas Devlieghere2019-12-212-0/+13
| | | | | Fix the nonsensical error messages for when breakpoint and watchpoint callbacks are not supported.
* [lldb/Commands] Honor the scripting language passedJonas Devlieghere2019-12-211-0/+11
| | | | | | This ensures that breakpoint command honors the scripting language passed with `-s`. Currently the argument ignores the actual language and only uses it to differentiate between lldb and script commands.
* [Lldb/Lua] Persist Lua state across script interpreter calls.Jonas Devlieghere2019-12-211-0/+3
| | | | | | Don't create a new lua state on every operation. Share a single state across the lifetime of the script interpreter. Add simple locking to prevent two threads from modifying the state concurrently.
* [Lldb/Lua] Generate Lua BindingsJonas Devlieghere2019-12-211-0/+6
| | | | | | | | | | | This patch uses SWIG to generate the Lua bindings for the SB API. It covers most of the API, but some methods require a type map similar to Python. Discussion on the mailing list: http://lists.llvm.org/pipermail/lldb-dev/2019-December/015812.html Differential revision: https://reviews.llvm.org/D71235
* [lldb/Lua] Implement a Simple Lua Script Interpreter PrototypeJonas Devlieghere2019-12-201-0/+3
| | | | | | | | | | | | | | | This implements a very elementary Lua script interpreter. It supports running a single command as well as running interactively. It uses editline if available. It's still missing a bunch of stuff though. Some things that I intentionally ingored for now are that I/O isn't properly hooked up (so every print goes to stdout) and the non-editline support which is not handling a bunch of corner cases. The latter is a matter of reusing existing code in the Python interpreter. Discussion on the mailing list: http://lists.llvm.org/pipermail/lldb-dev/2019-December/015812.html Differential revision: https://reviews.llvm.org/D71234
* [lldb/test] Move script interpreter testsJonas Devlieghere2019-12-182-0/+137
Create a new test for lldb launched without a script interpreter and move it under a new `ScriptInterpreter` directory. Also move crashlog.test there for consistency.
OpenPOWER on IntegriCloud