Ejemplo n.º 1
0
/*
================
rvDebuggerClient::AddBreakpoint

Adds a breakpoint to the client and server with the give nfilename and linenumber
================
*/
int rvDebuggerClient::AddBreakpoint ( const char* filename, int lineNumber, bool onceOnly )
{
	int index = mBreakpoints.Append ( new rvDebuggerBreakpoint ( filename, lineNumber ) );		
	
	SendAddBreakpoint ( *mBreakpoints[index] );
	
	return index;
}
/*
================
rvDebuggerClient::SendBreakpoints

Send all breakpoints to the debugger server
================
*/
void rvDebuggerClient::SendBreakpoints(void)
{
	int i;

	if (!mConnected) {
		return;
	}

	// Send all the breakpoints to the server
	for (i = 0; i < mBreakpoints.Num(); i ++) {
		SendAddBreakpoint(*mBreakpoints[i]);
	}
}