| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Implements the command script import command for Lua.
Differential revision: https://reviews.llvm.org/D71825
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
string.format("%s", true) only works since lua-5.2. Make the print
statement more portable.
|
|
|
|
|
| |
Rather than checking for Python explicitly, let the script interpreter
handle things and print an error if the functionality is not supported.
|
|
|
|
|
| |
Fix the nonsensical error messages for when breakpoint and watchpoint
callbacks are not supported.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
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.
|