Corrected seg fault when deactivating an AVR8 target in the absence of an AVR8 debug interface.
This commit is contained in:
@@ -240,6 +240,10 @@ namespace Targets::Microchip::Avr::Avr8Bit
|
|||||||
|
|
||||||
void Avr8::deactivate() {
|
void Avr8::deactivate() {
|
||||||
try {
|
try {
|
||||||
|
if (this->avr8DebugInterface == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this->stop();
|
this->stop();
|
||||||
this->clearAllBreakpoints();
|
this->clearAllBreakpoints();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user