29 #include "../../idlib/precompiled.h"
116 MSG_Init( &msg, buffer,
sizeof( buffer ) );
119 while (
mPort.
GetPacket ( adrFrom, msg.data, msg.cursize, msg.maxsize ) )
121 unsigned short command;
129 command = (
unsigned short) MSG_ReadShort ( &msg );
192 char filename[MAX_PATH];
200 MSG_ReadString ( msg, filename, MAX_PATH );
228 MSG_Init( &msg, buffer,
sizeof( buffer ) );
230 MSG_WriteShort ( &msg, (
short)(
mCallstack.
Num()-callstackDepth) );
231 MSG_WriteString ( &msg, name );
251 for ( depth = (
short)MSG_ReadShort ( msg ) ; depth > 0; depth -- )
258 MSG_ReadString ( msg, temp, 1024 );
262 MSG_ReadString ( msg, temp, 1024 );
288 for ( count = (
short)MSG_ReadShort ( msg ) ; count > 0; count -- )
295 MSG_ReadString ( msg, temp, 1024 );
299 entry->
mID = MSG_ReadLong ( msg );
302 entry->
mCurrent = MSG_ReadBits ( msg, 1 ) ?
true :
false;
304 entry->
mWaiting = MSG_ReadBits ( msg, 1 ) ?
true :
false;
305 entry->
mDying = MSG_ReadBits ( msg, 1 ) ?
true :
false;
326 callDepth = (short)MSG_ReadShort ( msg );
327 MSG_ReadString ( msg, var, 1024 );
328 MSG_ReadString ( msg, value, 1024 );
469 MSG_Init( &msg, buffer,
sizeof( buffer ) );
470 MSG_WriteShort ( &msg, (
int)dbmsg );
515 MSG_Init( &msg, buffer,
sizeof( buffer ) );
517 MSG_WriteBits ( &msg, onceOnly?1:0, 1 );
518 MSG_WriteLong ( &msg, (
unsigned long) bp.
GetLineNumber ( ) );
519 MSG_WriteLong ( &msg, bp.
GetID ( ) );
542 MSG_Init( &msg, buffer,
sizeof( buffer ) );
544 MSG_WriteLong ( &msg, bp.
GetID() );
GLsizei const GLfloat * value
bool WaitFor(EDebuggerMessage msg, int time)
assert(prefInfo.fullscreenBtn)
EDebuggerMessage mWaitFor
rvDebuggerThreadList mThreads
rvDebuggerWindow & GetWindow(void)
void InspectVariable(const char *name, int callstackDepth)
bool Sys_CompareNetAdrBase(const netadr_t a, const netadr_t b)
int Sys_Milliseconds(void)
bool Sys_StringToNetAdr(const char *s, netadr_t *a, bool doDNSResolve)
GLint GLint GLsizei GLsizei GLsizei depth
rvDebuggerBreakpoint * FindBreakpoint(const char *filename, int linenumber)
void Set(const char *key, const char *value)
void SendBreakpoints(void)
void Sleep(const int time)
void HandleInspectVariable(msg_t *msg)
int Icmp(const char *text) const
bool GetPacket(netadr_t &from, void *data, int &size, int maxSize)
void SendMessage(EDebuggerMessage dbmsg)
GLuint GLuint GLsizei count
void SendRemoveBreakpoint(rvDebuggerBreakpoint &bp)
rvDebuggerCallstackList mCallstack
void SendPacket(void *data, int datasize)
bool ProcessMessages(void)
void SendAddBreakpoint(rvDebuggerBreakpoint &bp, bool onceOnly=false)
bool InitForPort(int portNumber)
void ClearBreakpoints(void)
void HandleInspectCallstack(msg_t *msg)
const char * GetFilename(void)
void HandleBreak(msg_t *msg)
int Append(const type &obj)
bool RemoveIndex(int index)
bool RemoveBreakpoint(int bpID)
int GetBreakpointCount(void)
int AddBreakpoint(const char *filename, int lineNumber, bool onceOnly=false)
char * va(const char *fmt,...)
rvDebuggerApp gDebuggerApp
void ProcessNetMessage(msg_t *msg)
rvDebuggerBreakpointList mBreakpoints
void ClearCallstack(void)
void HandleInspectThreads(msg_t *msg)