From bf03e17c570171c7a52117fe63ace89d58f328d5 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 8 Dec 2019 15:32:57 -0800 Subject: [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 --- lldb/test/Shell/ScriptInterpreter/Lua/bindings.test | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lldb/test/Shell/ScriptInterpreter/Lua/bindings.test (limited to 'lldb/test/Shell/ScriptInterpreter') 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 -- cgit v1.2.3