Corrected seg fault when deactivating an AVR8 target in the absence of an AVR8 debug interface.

This commit is contained in:
Nav
2023-11-18 14:50:54 +00:00
parent 55d3fe76e0
commit ad2c709374

View File

@@ -240,6 +240,10 @@ namespace Targets::Microchip::Avr::Avr8Bit
void Avr8::deactivate() {
try {
if (this->avr8DebugInterface == nullptr) {
return;
}
this->stop();
this->clearAllBreakpoints();