doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
rvDebuggerClient Class Reference

#include <DebuggerClient.h>

Public Member Functions

 rvDebuggerClient ()
 
 ~rvDebuggerClient ()
 
bool Initialize (void)
 
void Shutdown (void)
 
bool ProcessMessages (void)
 
bool WaitFor (EDebuggerMessage msg, int time)
 
bool IsConnected (void)
 
bool IsStopped (void)
 
int GetActiveBreakpointID (void)
 
const char * GetBreakFilename (void)
 
int GetBreakLineNumber (void)
 
rvDebuggerCallstackListGetCallstack (void)
 
rvDebuggerThreadListGetThreads (void)
 
const char * GetVariableValue (const char *name, int stackDepth)
 
void InspectVariable (const char *name, int callstackDepth)
 
void Break (void)
 
void Resume (void)
 
void StepInto (void)
 
void StepOver (void)
 
int AddBreakpoint (const char *filename, int lineNumber, bool onceOnly=false)
 
bool RemoveBreakpoint (int bpID)
 
void ClearBreakpoints (void)
 
int GetBreakpointCount (void)
 
rvDebuggerBreakpointGetBreakpoint (int index)
 
rvDebuggerBreakpointFindBreakpoint (const char *filename, int linenumber)
 

Protected Member Functions

void SendMessage (EDebuggerMessage dbmsg)
 
void SendBreakpoints (void)
 
void SendAddBreakpoint (rvDebuggerBreakpoint &bp, bool onceOnly=false)
 
void SendRemoveBreakpoint (rvDebuggerBreakpoint &bp)
 
void SendPacket (void *data, int datasize)
 

Protected Attributes

bool mConnected
 
netadr_t mServerAdr
 
idPort mPort
 
bool mBreak
 
int mBreakID
 
int mBreakLineNumber
 
idStr mBreakFilename
 
idDict mVariables
 
rvDebuggerCallstackList mCallstack
 
rvDebuggerThreadList mThreads
 
rvDebuggerBreakpointList mBreakpoints
 
EDebuggerMessage mWaitFor
 

Private Member Functions

void ClearCallstack (void)
 
void ClearThreads (void)
 
void UpdateWatches (void)
 
void HandleBreak (msg_t *msg)
 
void HandleInspectCallstack (msg_t *msg)
 
void HandleInspectThreads (msg_t *msg)
 
void HandleInspectVariable (msg_t *msg)
 

Detailed Description

Definition at line 60 of file DebuggerClient.h.

Constructor & Destructor Documentation

rvDebuggerClient::rvDebuggerClient ( )

Definition at line 39 of file DebuggerClient.cpp.

rvDebuggerClient::~rvDebuggerClient ( )

Definition at line 50 of file DebuggerClient.cpp.

Member Function Documentation

int rvDebuggerClient::AddBreakpoint ( const char *  filename,
int  lineNumber,
bool  onceOnly = false 
)

Definition at line 423 of file DebuggerClient.cpp.

ID_INLINE void rvDebuggerClient::Break ( void  )

Definition at line 241 of file DebuggerClient.h.

void rvDebuggerClient::ClearBreakpoints ( void  )

Definition at line 400 of file DebuggerClient.cpp.

void rvDebuggerClient::ClearCallstack ( void  )
private

Definition at line 556 of file DebuggerClient.cpp.

void rvDebuggerClient::ClearThreads ( void  )
private

Definition at line 575 of file DebuggerClient.cpp.

rvDebuggerBreakpoint * rvDebuggerClient::FindBreakpoint ( const char *  filename,
int  linenumber 
)

Definition at line 376 of file DebuggerClient.cpp.

ID_INLINE int rvDebuggerClient::GetActiveBreakpointID ( void  )

Definition at line 161 of file DebuggerClient.h.

ID_INLINE const char * rvDebuggerClient::GetBreakFilename ( void  )

Definition at line 171 of file DebuggerClient.h.

ID_INLINE int rvDebuggerClient::GetBreakLineNumber ( void  )

Definition at line 181 of file DebuggerClient.h.

ID_INLINE rvDebuggerBreakpoint * rvDebuggerClient::GetBreakpoint ( int  index)

Definition at line 231 of file DebuggerClient.h.

ID_INLINE int rvDebuggerClient::GetBreakpointCount ( void  )

Definition at line 221 of file DebuggerClient.h.

ID_INLINE rvDebuggerCallstackList & rvDebuggerClient::GetCallstack ( void  )

Definition at line 191 of file DebuggerClient.h.

ID_INLINE rvDebuggerThreadList & rvDebuggerClient::GetThreads ( void  )

Definition at line 201 of file DebuggerClient.h.

ID_INLINE const char * rvDebuggerClient::GetVariableValue ( const char *  name,
int  stackDepth 
)

Definition at line 211 of file DebuggerClient.h.

void rvDebuggerClient::HandleBreak ( msg_t *  msg)
private

Definition at line 190 of file DebuggerClient.cpp.

void rvDebuggerClient::HandleInspectCallstack ( msg_t *  msg)
private

Definition at line 244 of file DebuggerClient.cpp.

void rvDebuggerClient::HandleInspectThreads ( msg_t *  msg)
private

Definition at line 281 of file DebuggerClient.cpp.

void rvDebuggerClient::HandleInspectVariable ( msg_t *  msg)
private

Definition at line 320 of file DebuggerClient.cpp.

bool rvDebuggerClient::Initialize ( void  )

Definition at line 64 of file DebuggerClient.cpp.

void rvDebuggerClient::InspectVariable ( const char *  name,
int  callstackDepth 
)

Definition at line 223 of file DebuggerClient.cpp.

ID_INLINE bool rvDebuggerClient::IsConnected ( void  )

Definition at line 141 of file DebuggerClient.h.

ID_INLINE bool rvDebuggerClient::IsStopped ( void  )

Definition at line 151 of file DebuggerClient.h.

bool rvDebuggerClient::ProcessMessages ( void  )

Definition at line 110 of file DebuggerClient.cpp.

bool rvDebuggerClient::RemoveBreakpoint ( int  bpID)

Definition at line 439 of file DebuggerClient.cpp.

ID_INLINE void rvDebuggerClient::Resume ( void  )

Definition at line 251 of file DebuggerClient.h.

void rvDebuggerClient::SendAddBreakpoint ( rvDebuggerBreakpoint bp,
bool  onceOnly = false 
)
protected

Definition at line 505 of file DebuggerClient.cpp.

void rvDebuggerClient::SendBreakpoints ( void  )
protected

Definition at line 482 of file DebuggerClient.cpp.

void rvDebuggerClient::SendMessage ( EDebuggerMessage  dbmsg)
protected

Definition at line 464 of file DebuggerClient.cpp.

ID_INLINE void rvDebuggerClient::SendPacket ( void data,
int  datasize 
)
protected

Definition at line 284 of file DebuggerClient.h.

void rvDebuggerClient::SendRemoveBreakpoint ( rvDebuggerBreakpoint bp)
protected

Definition at line 532 of file DebuggerClient.cpp.

void rvDebuggerClient::Shutdown ( void  )

Definition at line 94 of file DebuggerClient.cpp.

ID_INLINE void rvDebuggerClient::StepInto ( void  )

Definition at line 273 of file DebuggerClient.h.

ID_INLINE void rvDebuggerClient::StepOver ( void  )

Definition at line 262 of file DebuggerClient.h.

void rvDebuggerClient::UpdateWatches ( void  )
private
bool rvDebuggerClient::WaitFor ( EDebuggerMessage  msg,
int  time 
)

Definition at line 341 of file DebuggerClient.cpp.

Member Data Documentation

bool rvDebuggerClient::mBreak
protected

Definition at line 109 of file DebuggerClient.h.

idStr rvDebuggerClient::mBreakFilename
protected

Definition at line 112 of file DebuggerClient.h.

int rvDebuggerClient::mBreakID
protected

Definition at line 110 of file DebuggerClient.h.

int rvDebuggerClient::mBreakLineNumber
protected

Definition at line 111 of file DebuggerClient.h.

rvDebuggerBreakpointList rvDebuggerClient::mBreakpoints
protected

Definition at line 118 of file DebuggerClient.h.

rvDebuggerCallstackList rvDebuggerClient::mCallstack
protected

Definition at line 116 of file DebuggerClient.h.

bool rvDebuggerClient::mConnected
protected

Definition at line 105 of file DebuggerClient.h.

idPort rvDebuggerClient::mPort
protected

Definition at line 107 of file DebuggerClient.h.

netadr_t rvDebuggerClient::mServerAdr
protected

Definition at line 106 of file DebuggerClient.h.

rvDebuggerThreadList rvDebuggerClient::mThreads
protected

Definition at line 117 of file DebuggerClient.h.

idDict rvDebuggerClient::mVariables
protected

Definition at line 114 of file DebuggerClient.h.

EDebuggerMessage rvDebuggerClient::mWaitFor
protected

Definition at line 120 of file DebuggerClient.h.


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