llvm-project/lldb/unittests/ScriptInterpreter
Pedro Tammela a0d7406ae8 [LLDB/Lua] add support for one-liner breakpoint callback
These callbacks are set using the following:
   breakpoint command add -s lua -o "print('hello world!')"

The user supplied script is executed as:
   function (frame, bp_loc, ...)
      <body>
   end

So the local variables 'frame', 'bp_loc' and vararg are all accessible.
Any global variables declared will persist in the Lua interpreter.
A user should never hold 'frame' and 'bp_loc' in a global variable as
these userdatas are context dependent.

Differential Revision: https://reviews.llvm.org/D91508
2020-11-30 14:12:26 +00:00
..
Lua [LLDB/Lua] add support for one-liner breakpoint callback 2020-11-30 14:12:26 +00:00
Python Revert "Revert "Add the ability to write target stop-hooks using the ScriptInterpreter."" 2020-09-29 12:01:14 -07:00
CMakeLists.txt [lldb/Lua] Implement a Simple Lua Script Interpreter Prototype 2019-12-20 11:19:47 -08:00