Clear hardware breakpoints in clearAllBreakpoints() (EDBG AVR8 driver)

This commit is contained in:
Nav
2023-09-21 01:10:35 +01:00
parent 90f057e1a0
commit b3d03f73ac

View File

@@ -426,6 +426,11 @@ namespace DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
if (responseFrame.id == Avr8ResponseId::FAILED) {
throw Avr8CommandFailure("AVR8 Clear all software breakpoints command failed", responseFrame);
}
// Clear all hardware breakpoints
for (const auto& [address, breakpointNumber] : this->hardwareBreakpointNumbersByAddress) {
this->clearHardwareBreakpoint(address);
}
}
TargetRegisters EdbgAvr8Interface::readRegisters(const TargetRegisterDescriptorIds& descriptorIds) {