diff options
| author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2023-03-02 12:46:34 -0800 |
|---|---|---|
| committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2023-03-02 12:46:34 -0800 |
| commit | ab81fc29d9f7a8f8807293fc987f68f9ccf42259 (patch) | |
| tree | b9afe791a3021a0156bf0c0a2a3b59f0f67b0b5d /lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp | |
| parent | b970e725d8fd3f9b3d587e5203efd5e6f2e84e9a (diff) | |
[lldb/Interpreter] Fix build failures in ScriptInterpreterLua
This patch should fix the build failures in the Lua ScriptedInterpreter
introduced by 9a9fce1fed6d.
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp')
| -rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp b/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp index ec0992583145..be573cfba610 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp @@ -111,7 +111,7 @@ public: io_handler.GetUserData()); for (BreakpointOptions &bp_options : *bp_options_vec) { Status error = m_script_interpreter.SetBreakpointCommandCallback( - bp_options, data.c_str()); + bp_options, data.c_str(), /*is_callback=*/false); if (error.Fail()) *io_handler.GetErrorStreamFileSP() << error.AsCString() << '\n'; } @@ -121,7 +121,8 @@ public: auto *wp_options = static_cast<WatchpointOptions *>(io_handler.GetUserData()); m_script_interpreter.SetWatchpointCommandCallback(wp_options, - data.c_str()); + data.c_str(), + /*is_callback=*/false); io_handler.SetIsDone(true); } break; case eIOHandlerNone: @@ -348,7 +349,8 @@ Status ScriptInterpreterLua::SetBreakpointCommandCallbackFunction( } Status ScriptInterpreterLua::SetBreakpointCommandCallback( - BreakpointOptions &bp_options, const char *command_body_text) { + BreakpointOptions &bp_options, const char *command_body_text, + bool is_callback) { return RegisterBreakpointCallback(bp_options, command_body_text, {}); } @@ -368,7 +370,8 @@ Status ScriptInterpreterLua::RegisterBreakpointCallback( } void ScriptInterpreterLua::SetWatchpointCommandCallback( - WatchpointOptions *wp_options, const char *command_body_text) { + WatchpointOptions *wp_options, const char *command_body_text, + bool is_callback) { RegisterWatchpointCallback(wp_options, command_body_text, {}); } |
