From 0562c377fb5fdadd931dea5590c499f3e3e2c3d0 Mon Sep 17 00:00:00 2001 From: mandlebro Date: Mon, 6 Aug 2018 13:19:52 +0100 Subject: [PATCH] Enable asm.flags in emulation --- src/Cutter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Cutter.cpp b/src/Cutter.cpp index b6998a10..bbcad235 100644 --- a/src/Cutter.cpp +++ b/src/Cutter.cpp @@ -907,7 +907,7 @@ void CutterCore::startEmulation() emit registersChanged(); if (!currentlyDebugging || !currentlyEmulating) { // prevent register flags from appearing during debug/emul - setConfig("asm.flags", false); + // setConfig("asm.flags", false); // allows to view self-modifying code changes or other binary changes setConfig("io.cache", true); currentlyDebugging = true; @@ -977,10 +977,10 @@ void CutterCore::continueDebug() void CutterCore::continueUntilDebug(QString offset) { if (currentlyDebugging) { - if (!currentlyEmulating) { - cmd("dcu " + offset); - } else { + if (currentlyEmulating) { cmdEsil("aecu " + offset); + } else { + cmd("dcu " + offset); } emit registersChanged(); emit refreshCodeViews();