LLDB mainline
SWIGLuaBridge.h
Go to the documentation of this file.
1//===-- SWIGLuaBridge.h -----------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H
10#define LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H
11
12#include "lldb/lldb-forward.h"
13#include "lua.hpp"
14#include "llvm/Support/Error.h"
15
16namespace lldb_private {
17
18namespace lua {
19
21public:
22 static llvm::Expected<bool> LLDBSwigLuaBreakpointCallbackFunction(
23 lua_State *L, lldb::StackFrameSP stop_frame_sp,
25 const StructuredDataImpl &extra_args_impl);
26
27 static llvm::Expected<bool> LLDBSwigLuaWatchpointCallbackFunction(
28 lua_State *L, lldb::StackFrameSP stop_frame_sp, lldb::WatchpointSP wp_sp);
29};
30
31} // namespace lua
32
33} // namespace lldb_private
34
35#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H
static llvm::Expected< bool > LLDBSwigLuaWatchpointCallbackFunction(lua_State *L, lldb::StackFrameSP stop_frame_sp, lldb::WatchpointSP wp_sp)
static llvm::Expected< bool > LLDBSwigLuaBreakpointCallbackFunction(lua_State *L, lldb::StackFrameSP stop_frame_sp, lldb::BreakpointLocationSP bp_loc_sp, const StructuredDataImpl &extra_args_impl)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
Definition: lldb-forward.h:415
std::shared_ptr< lldb_private::BreakpointLocation > BreakpointLocationSP
Definition: lldb-forward.h:319
std::shared_ptr< lldb_private::Watchpoint > WatchpointSP
Definition: lldb-forward.h:480