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
7 lines
222 B
Plaintext
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
|