- removed clientside use of mBreakprogram ptr

This commit is contained in:
HarrievG 2021-05-13 09:56:46 +02:00 committed by Daniel Gibson
parent cd9284d876
commit 5ebda5eab5
4 changed files with 4 additions and 16 deletions

View file

@ -226,8 +226,8 @@ void rvDebuggerClient::HandleBreak ( idBitMsg* msg )
msg->ReadString ( filename, MAX_PATH );
mBreakFilename = filename;
int64_t ptr64b = msg->ReadInt64();
mBreakProgram = (idProgram*)ptr64b;
//int64_t ptr64b = msg->ReadInt64();
//mBreakProgram = (idProgram*)ptr64b;
// Clear the variables
mVariables.Clear ( );

View file

@ -112,7 +112,6 @@ protected:
int mBreakID;
int mBreakLineNumber;
idStr mBreakFilename;
idProgram* mBreakProgram;
idDict mVariables;
@ -191,17 +190,6 @@ ID_INLINE int rvDebuggerClient::GetBreakLineNumber ( void )
return mBreakLineNumber;
}
/*
================
rvDebuggerClient::GetBreakProgram
================
*/
ID_INLINE idProgram* rvDebuggerClient::GetBreakProgram(void)
{
return mBreakProgram;
}
/*
================
rvDebuggerClient::GetCallstack

View file

@ -612,7 +612,7 @@ void rvDebuggerServer::Break ( idInterpreter* interpreter, idProgram* program, i
msg.WriteInt ( linenumber );
msg.WriteString ( fileStr.c_str() );
msg.WriteInt64( (int64_t)mBreakProgram );
//msg.WriteInt64( (int64_t)mBreakProgram );
SendPacket ( msg.GetData(), msg.GetSize() );

View file

@ -1794,7 +1794,7 @@ void rvDebuggerWindow::ProcessNetMessage ( idBitMsg* msg )
mClient->InspectVariable ( mTooltipVar, mCurrentStackDepth );
UpdateWatch ( );
EnableWindows ( TRUE );
OpenScript ( mClient->GetBreakFilename(), mClient->GetBreakLineNumber() - 1, mClient->GetBreakProgram());
OpenScript ( mClient->GetBreakFilename(), mClient->GetBreakLineNumber() - 1 );
UpdateTitle ( );
UpdateToolbar ( );
SetForegroundWindow ( mWnd );