Removed breakpoint caching in GDB server - it's not needed!
GDB can be configured to avoid needlessly updating breakpoints on the target
This commit is contained in:
@@ -54,18 +54,8 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
|
||||
Logger::debug("Handling SetBreakpoint packet");
|
||||
|
||||
try {
|
||||
if (
|
||||
!debugSession.serverConfig.breakpointCachingEnabled
|
||||
|| !debugSession.breakpointAddresses.contains(this->address)
|
||||
) {
|
||||
targetControllerService.setBreakpoint(TargetBreakpoint(this->address));
|
||||
}
|
||||
|
||||
if (debugSession.serverConfig.breakpointCachingEnabled) {
|
||||
debugSession.breakpointAddresses.insert(this->address);
|
||||
debugSession.breakpointAddressesPendingRemoval.erase(this->address);
|
||||
}
|
||||
|
||||
targetControllerService.setBreakpoint(TargetBreakpoint(this->address));
|
||||
debugSession.connection.writePacket(OkResponsePacket());
|
||||
|
||||
} catch (const Exception& exception) {
|
||||
|
||||
Reference in New Issue
Block a user