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
22 lines
548 B
Plaintext
22 lines
548 B
Plaintext
template <typename SBClass>
|
|
void
|
|
PushSBClass (lua_State* L, SBClass* obj);
|
|
|
|
void
|
|
PushSBClass (lua_State* L, lldb::SBFrame* frame_sb)
|
|
{
|
|
SWIG_NewPointerObj(L, frame_sb, SWIGTYPE_p_lldb__SBFrame, 0);
|
|
}
|
|
|
|
void
|
|
PushSBClass (lua_State* L, lldb::SBBreakpointLocation* breakpoint_location_sb)
|
|
{
|
|
SWIG_NewPointerObj(L, breakpoint_location_sb, SWIGTYPE_p_lldb__SBBreakpointLocation, 0);
|
|
}
|
|
|
|
void
|
|
PushSBClass (lua_State* L, lldb::SBStructuredData* structured_data_sb)
|
|
{
|
|
SWIG_NewPointerObj(L, structured_data_sb, SWIGTYPE_p_lldb__SBStructuredData, 0);
|
|
}
|