Stop existing trace sessions in stopDebug

This commit is contained in:
yossizap 2020-10-31 21:32:09 +00:00
parent 2b9e262cc2
commit 5ce286dea5

View File

@ -1835,7 +1835,7 @@ void CutterCore::stopDebug()
emit debugTaskStateChanged(); emit debugTaskStateChanged();
if (currentlyEmulating) { if (currentlyEmulating) {
cmdEsil("aeim-; aei-; wcr; .ar-"); cmdEsil("aeim-; aei-; wcr; .ar-; aets-");
currentlyEmulating = false; currentlyEmulating = false;
} else if (currentlyAttachedToPID != -1) { } else if (currentlyAttachedToPID != -1) {
// Use cmd because cmdRaw would not work with command concatenation // Use cmd because cmdRaw would not work with command concatenation