Use API instead of ar- and aets- commands (#2980)

This commit is contained in:
Riccardo Schirone 2022-06-25 03:15:13 +02:00 committed by GitHub
parent a7d3eaffb0
commit f20b59d8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2146,13 +2146,15 @@ void CutterCore::stopDebug()
currentlyRemoteDebugging = false; currentlyRemoteDebugging = false;
emit debugTaskStateChanged(); emit debugTaskStateChanged();
CORE_LOCK();
if (currentlyEmulating) { if (currentlyEmulating) {
cmdEsil("aeim-; aei-"); cmdEsil("aeim-; aei-");
resetWriteCache(); resetWriteCache();
cmdEsil(".ar-; aets-"); rz_core_debug_clear_register_flags(core);
rz_core_analysis_esil_trace_stop(core);
currentlyEmulating = false; currentlyEmulating = false;
} else { } else {
rz_core_debug_process_close(core()); rz_core_debug_process_close(core);
currentlyAttachedToPID = -1; currentlyAttachedToPID = -1;
} }