Removed intercepting breakpoint on end address of a stepping range. Replaced with runTo operation

This commit is contained in:
Nav
2023-09-23 21:51:09 +01:00
parent 9904d93314
commit ed3ddbe3fd
2 changed files with 4 additions and 14 deletions

View File

@@ -183,19 +183,6 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
rangeSteppingSession.interceptedAddresses.insert(*destinationAddress);
}
}
const auto subsequentInstructionAddress = instructionAddress + instruction->byteSize;
if (subsequentInstructionAddress >= addressRange.endAddress) {
/*
* Once this instruction has been executed, we'll end up outside the stepping range (so we'll want
* to stop there and report back to GDB).
*/
Logger::debug(
"Intercepting subsequent instruction at byte address 0x"
+ StringService::toHex(subsequentInstructionAddress)
);
rangeSteppingSession.interceptedAddresses.insert(subsequentInstructionAddress);
}
}
debugSession.startRangeSteppingSession(std::move(rangeSteppingSession), targetControllerService);