47 lines
761 B
C
47 lines
761 B
C
#ifndef __DEBUG_LUA_H__
|
|
#define __DEBUG_LUA_H__
|
|
|
|
#include "../syscalls.h"
|
|
|
|
enum BreakpointCondition
|
|
{
|
|
Execute = 0,
|
|
Write = 1,
|
|
ReadWrite = 0b11
|
|
};
|
|
|
|
enum BreakpointLen
|
|
{
|
|
Byte = 0,
|
|
Word = 1,
|
|
Dword = 0b11
|
|
};
|
|
|
|
int syscalls_DebugPutc(lua_State* L);
|
|
|
|
int syscalls_DebugPuts(lua_State* L);
|
|
|
|
int syscalls_SetMessageArea(lua_State* L);
|
|
|
|
int syscalls_GetRegisters(lua_State* L);
|
|
|
|
int syscalls_SetRegisters(lua_State* L);
|
|
|
|
int syscalls_Disconnect(lua_State* L);
|
|
|
|
int syscalls_Stop(lua_State* L);
|
|
|
|
int syscalls_Continue(lua_State* L);
|
|
|
|
int syscalls_ReadFromMem(lua_State* L);
|
|
|
|
int syscalls_WriteToMem(lua_State* L);
|
|
|
|
int syscalls_Done(lua_State* L);
|
|
|
|
int syscalls_DefineBreakpoint(lua_State* L);
|
|
|
|
int syscalls_UndefBreakpoint(lua_State* L);
|
|
|
|
#endif // __DEBUG_LUA_H__
|