From fe162e626f14901819cc2784dd549d1769a1cca1 Mon Sep 17 00:00:00 2001 From: HarrievG Date: Sat, 3 Jul 2021 21:46:16 +0200 Subject: [PATCH] - removed unused onceOnly flag for debugger breakpoints. --- neo/tools/debugger/DebuggerClient.cpp | 5 ++--- neo/tools/debugger/DebuggerClient.h | 4 ++-- neo/tools/debugger/DebuggerServer.cpp | 2 -- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/neo/tools/debugger/DebuggerClient.cpp b/neo/tools/debugger/DebuggerClient.cpp index fa68099e..c1df08a4 100644 --- a/neo/tools/debugger/DebuggerClient.cpp +++ b/neo/tools/debugger/DebuggerClient.cpp @@ -495,7 +495,7 @@ 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 rvDebuggerClient::AddBreakpoint ( const char* filename, int lineNumber ) { int index = mBreakpoints.Append ( new rvDebuggerBreakpoint ( filename, lineNumber ) ); @@ -578,7 +578,7 @@ rvDebuggerClient::SendAddBreakpoint Send an individual breakpoint over to the debugger server ================ */ -void rvDebuggerClient::SendAddBreakpoint ( rvDebuggerBreakpoint& bp, bool onceOnly ) +void rvDebuggerClient::SendAddBreakpoint ( rvDebuggerBreakpoint& bp ) { idBitMsg msg; byte buffer[MAX_MSGLEN]; @@ -591,7 +591,6 @@ void rvDebuggerClient::SendAddBreakpoint ( rvDebuggerBreakpoint& bp, bool onceOn msg.Init( buffer, sizeof( buffer ) ); msg.BeginWriting(); msg.WriteShort ( (short)DBMSG_ADDBREAKPOINT ); - msg.WriteBits ( onceOnly?1:0, 1 ); msg.WriteInt ( (unsigned long) bp.GetLineNumber ( ) ); msg.WriteInt ( bp.GetID ( ) ); msg.WriteString ( bp.GetFilename() ); // FIXME: this implies make7bit ?! diff --git a/neo/tools/debugger/DebuggerClient.h b/neo/tools/debugger/DebuggerClient.h index 5889334e..10929ecf 100644 --- a/neo/tools/debugger/DebuggerClient.h +++ b/neo/tools/debugger/DebuggerClient.h @@ -91,7 +91,7 @@ public: void SendCommand ( const char* cmdStr ); // Breakpoints - int AddBreakpoint ( const char* filename, int lineNumber, bool onceOnly = false ); + int AddBreakpoint ( const char* filename, int lineNumber ); bool RemoveBreakpoint ( int bpID ); void ClearBreakpoints ( void ); int GetBreakpointCount ( void ); @@ -102,7 +102,7 @@ protected: void SendMessage ( EDebuggerMessage dbmsg ); void SendBreakpoints ( void ); - void SendAddBreakpoint ( rvDebuggerBreakpoint& bp, bool onceOnly = false ); + void SendAddBreakpoint ( rvDebuggerBreakpoint& bp ); void SendRemoveBreakpoint ( rvDebuggerBreakpoint& bp ); void SendPacket ( void* data, int datasize ); diff --git a/neo/tools/debugger/DebuggerServer.cpp b/neo/tools/debugger/DebuggerServer.cpp index d3f05d02..02b9176d 100644 --- a/neo/tools/debugger/DebuggerServer.cpp +++ b/neo/tools/debugger/DebuggerServer.cpp @@ -294,13 +294,11 @@ data supplied in the message. */ void rvDebuggerServer::HandleAddBreakpoint ( idBitMsg* msg ) { - bool onceOnly = false; long lineNumber; long id; char filename[2048]; // DG: randomly chose this size // Read the breakpoint info - onceOnly = msg->ReadBits ( 1 ) ? true : false; lineNumber = msg->ReadInt ( ); id = msg->ReadInt ( );