diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-08 15:32:57 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-21 11:28:41 -0800 |
| commit | bf03e17c570171c7a52117fe63ace89d58f328d5 (patch) | |
| tree | 8361b20a3a9569ef8cf70fed5033e24c414e99c7 /lldb/test/Shell/ScriptInterpreter/Lua | |
| parent | 2203089a60d826e882e2ccfc5cc5d361b4f91078 (diff) | |
| download | bcm5719-llvm-bf03e17c570171c7a52117fe63ace89d58f328d5.tar.gz bcm5719-llvm-bf03e17c570171c7a52117fe63ace89d58f328d5.zip | |
[Lldb/Lua] Generate Lua Bindings
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
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Lua')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Lua/bindings.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test b/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test new file mode 100644 index 00000000000..00e00d43479 --- /dev/null +++ b/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test @@ -0,0 +1,6 @@ +# REQUIRES: lua +# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s +script +debugger = lldb.SBDebugger.Create() +print(string.format("debugger is valid: %s", debugger:IsValid())) +# CHECK: debugger is valid: true |

