[Lldb-commits] [PATCH] D93649: [lldb/Lua] add support for Lua function breakpoint
Pedro Tammela via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 21 10:13:55 PST 2020
tammela created this revision.
tammela requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93649
Files:
lldb/bindings/lua/lua-swigsafecast.swig
lldb/bindings/lua/lua-wrapper.swig
lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h
lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_function_callback.test
lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93649.313140.patch
Type: text/x-patch
Size: 9742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201221/bc9b666d/attachment-0001.bin>
More information about the lldb-commits
mailing list