
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
7 lines
197 B
Plaintext
7 lines
197 B
Plaintext
script foobar = 40 + 7
|
|
script print(foobar)
|
|
script d = lldb.SBDebugger.Create()
|
|
script d:HandleCommand("script foobar = 40 + 2")
|
|
script print(foobar)
|
|
script d:HandleCommand("script print(foobar)")
|