diff --git a/src/DebugServer/Gdb/AvrGdb/CommandPackets/VContRangeStep.cpp b/src/DebugServer/Gdb/AvrGdb/CommandPackets/VContRangeStep.cpp index 71eccb46..1b8d36d7 100644 --- a/src/DebugServer/Gdb/AvrGdb/CommandPackets/VContRangeStep.cpp +++ b/src/DebugServer/Gdb/AvrGdb/CommandPackets/VContRangeStep.cpp @@ -88,7 +88,7 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets debugSession.terminateRangeSteppingSession(targetControllerService); } - if (this->startAddress == this->endAddress || (this->endAddress - this->startAddress) == 2) { + if (this->startAddress == this->endAddress || (this->endAddress - this->startAddress) <= 2) { // Single step requested. No need for a range step here. targetControllerService.stepTargetExecution(std::nullopt); debugSession.waitingForBreak = true;