185578db6SPavel Labath //===-- SWIGLuaBridge.h -----------------------------------------*- C++ -*-===// 285578db6SPavel Labath // 385578db6SPavel Labath // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 485578db6SPavel Labath // See https://llvm.org/LICENSE.txt for license information. 585578db6SPavel Labath // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 685578db6SPavel Labath // 785578db6SPavel Labath //===----------------------------------------------------------------------===// 885578db6SPavel Labath 985578db6SPavel Labath #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H 1085578db6SPavel Labath #define LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H 1185578db6SPavel Labath 1285578db6SPavel Labath #include "lldb/lldb-forward.h" 1385578db6SPavel Labath #include "lua.hpp" 1485578db6SPavel Labath #include "llvm/Support/Error.h" 1585578db6SPavel Labath 1685578db6SPavel Labath namespace lldb_private { 1785578db6SPavel Labath 18*692ae97aSAlex Langford namespace lua { 19*692ae97aSAlex Langford 20*692ae97aSAlex Langford class SWIGBridge { 21*692ae97aSAlex Langford public: 22*692ae97aSAlex Langford static llvm::Expected<bool> LLDBSwigLuaBreakpointCallbackFunction( 2385578db6SPavel Labath lua_State *L, lldb::StackFrameSP stop_frame_sp, 2482de8df2SPavel Labath lldb::BreakpointLocationSP bp_loc_sp, 2582de8df2SPavel Labath const StructuredDataImpl &extra_args_impl); 2685578db6SPavel Labath 27*692ae97aSAlex Langford static llvm::Expected<bool> LLDBSwigLuaWatchpointCallbackFunction( 2885578db6SPavel Labath lua_State *L, lldb::StackFrameSP stop_frame_sp, lldb::WatchpointSP wp_sp); 29*692ae97aSAlex Langford }; 30*692ae97aSAlex Langford 31*692ae97aSAlex Langford } // namespace lua 3285578db6SPavel Labath 3385578db6SPavel Labath } // namespace lldb_private 3485578db6SPavel Labath 3585578db6SPavel Labath #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H 36