[all-commits] [llvm/llvm-project] 532e42: [lldb/Lua] add support for Lua function breakpoint

Pedro Tammela via All-commits all-commits at lists.llvm.org
Mon Jan 25 15:45:42 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 532e4203c5be909af701df4dedfd36c9b8f85034
      https://github.com/llvm/llvm-project/commit/532e4203c5be909af701df4dedfd36c9b8f85034
  Author: Pedro Tammela <pctammela at gmail.com>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  Changed paths:
    M lldb/bindings/lua/lua-swigsafecast.swig
    M lldb/bindings/lua/lua-typemaps.swig
    M lldb/bindings/lua/lua-wrapper.swig
    M lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
    M lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h
    M lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
    M lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
    A lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_function_callback.test
    M lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp

  Log Message:
  -----------
  [lldb/Lua] add support for Lua function breakpoint

Adds support for running a Lua function when a breakpoint is hit.

Example:
   breakpoint command add -s lua -F abc

The above runs the Lua function 'abc' passing 2 arguments. 'frame', 'bp_loc' and 'extra_args'.

A third parameter 'extra_args' is only present when there is structured data
declared in the command line.

Example:
   breakpoint command add -s lua -F abc -k foo -v bar

Differential Revision: https://reviews.llvm.org/D93649




More information about the All-commits mailing list