Files
clang-p2996/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test
Jonas Devlieghere bf03e17c57 [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
2019-12-21 11:28:41 -08:00

7 lines
222 B
Plaintext

# 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