LLDB  mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::Lua Class Reference

#include <Lua.h>

Collaboration diagram for lldb_private::Lua:
Collaboration graph
[legend]

Public Member Functions

 Lua ()
 
 ~Lua ()
 
llvm::Error Run (llvm::StringRef buffer)
 
llvm::Error RegisterBreakpointCallback (void *baton, const char *body)
 
llvm::Expected< bool > CallBreakpointCallback (void *baton, lldb::StackFrameSP stop_frame_sp, lldb::BreakpointLocationSP bp_loc_sp, StructuredData::ObjectSP extra_args_sp)
 
llvm::Error RegisterWatchpointCallback (void *baton, const char *body)
 
llvm::Expected< bool > CallWatchpointCallback (void *baton, lldb::StackFrameSP stop_frame_sp, lldb::WatchpointSP wp_sp)
 
llvm::Error LoadModule (llvm::StringRef filename)
 
llvm::Error CheckSyntax (llvm::StringRef buffer)
 
llvm::Error ChangeIO (FILE *out, FILE *err)
 

Private Attributes

lua_State * m_lua_state
 

Detailed Description

Definition at line 29 of file Lua.h.

Constructor & Destructor Documentation

◆ Lua()

Lua::Lua ( )

Definition at line 57 of file Lua.cpp.

References lldb_print(), lldb_private::luaopen_lldb(), and m_lua_state.

◆ ~Lua()

Lua::~Lua ( )

Definition at line 65 of file Lua.cpp.

References m_lua_state.

Member Function Documentation

◆ CallBreakpointCallback()

llvm::Expected< bool > Lua::CallBreakpointCallback ( void *  baton,
lldb::StackFrameSP  stop_frame_sp,
lldb::BreakpointLocationSP  bp_loc_sp,
StructuredData::ObjectSP  extra_args_sp 
)

◆ CallWatchpointCallback()

llvm::Expected< bool > Lua::CallWatchpointCallback ( void *  baton,
lldb::StackFrameSP  stop_frame_sp,
lldb::WatchpointSP  wp_sp 
)

◆ ChangeIO()

llvm::Error Lua::ChangeIO ( FILE *  out,
FILE *  err 
)

Definition at line 191 of file Lua.cpp.

References m_lua_state.

◆ CheckSyntax()

llvm::Error Lua::CheckSyntax ( llvm::StringRef  buffer)

Definition at line 145 of file Lua.cpp.

References error(), and m_lua_state.

◆ LoadModule()

llvm::Error Lua::LoadModule ( llvm::StringRef  filename)

◆ RegisterBreakpointCallback()

llvm::Error Lua::RegisterBreakpointCallback ( void *  baton,
const char *  body 
)

Definition at line 85 of file Lua.cpp.

References m_lua_state, and string().

◆ RegisterWatchpointCallback()

llvm::Error Lua::RegisterWatchpointCallback ( void *  baton,
const char *  body 
)

Definition at line 119 of file Lua.cpp.

References m_lua_state, and string().

◆ Run()

llvm::Error Lua::Run ( llvm::StringRef  buffer)

Definition at line 70 of file Lua.cpp.

References error(), and m_lua_state.

Member Data Documentation

◆ m_lua_state

lua_State* lldb_private::Lua::m_lua_state
private

The documentation for this class was generated from the following files: