Fixed seg fault bug when clearing HW breakpoints in EDBG driver
This commit is contained in:
@@ -428,8 +428,8 @@ namespace DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Clear all hardware breakpoints
|
// Clear all hardware breakpoints
|
||||||
for (const auto& [address, breakpointNumber] : this->hardwareBreakpointNumbersByAddress) {
|
while (!this->hardwareBreakpointNumbersByAddress.empty()) {
|
||||||
this->clearHardwareBreakpoint(address);
|
this->clearHardwareBreakpoint(this->hardwareBreakpointNumbersByAddress.begin()->first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user