On RISC-V activation, clear any triggers that were left over from a previous debug session
This commit is contained in:
@@ -97,6 +97,11 @@ namespace DebugToolDrivers::Protocols::RiscVDebugSpec
|
|||||||
this->reset();
|
this->reset();
|
||||||
this->triggerDescriptorsByIndex = this->discoverTriggers();
|
this->triggerDescriptorsByIndex = this->discoverTriggers();
|
||||||
|
|
||||||
|
if (!this->triggerDescriptorsByIndex.empty()) {
|
||||||
|
// Clear any left-over triggers from the previous debug session
|
||||||
|
this->clearAllBreakpoints();
|
||||||
|
}
|
||||||
|
|
||||||
auto debugControlStatusRegister = this->readDebugControlStatusRegister();
|
auto debugControlStatusRegister = this->readDebugControlStatusRegister();
|
||||||
debugControlStatusRegister.breakUMode = true;
|
debugControlStatusRegister.breakUMode = true;
|
||||||
debugControlStatusRegister.breakSMode = true;
|
debugControlStatusRegister.breakSMode = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user