From a55147a0f545f6b2d2746e89ffac6c2efaf42b28 Mon Sep 17 00:00:00 2001 From: mandlebro Date: Tue, 24 Jul 2018 00:13:09 +0100 Subject: [PATCH] Fix highlighting in RIP when restarting emu/debug --- src/Cutter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Cutter.cpp b/src/Cutter.cpp index 7fdcffdd..d4353426 100644 --- a/src/Cutter.cpp +++ b/src/Cutter.cpp @@ -787,6 +787,7 @@ void CutterCore::setRegister(QString regName, QString regValue) { cmd("dr " + regName + "=" + regValue); emit registersChanged(); + emit refreshCodeViews(); } void CutterCore::startDebug() @@ -824,8 +825,8 @@ void CutterCore::startEmulation() currentlyEmulating = true; emit changeDebugView(); emit flagsChanged(); - emit refreshCodeViews(); } + emit refreshCodeViews(); } void CutterCore::attachDebug(int pid) @@ -842,8 +843,8 @@ void CutterCore::attachDebug(int pid) // prevent register flags from appearing during debug/emul setConfig("asm.flags", false); currentlyDebugging = true; - emit changeDebugView(); emit flagsChanged(); + emit changeDebugView(); } } @@ -861,8 +862,8 @@ void CutterCore::stopDebug() setConfig("asm.flags", true); setConfig("io.cache", false); currentlyDebugging = false; - emit changeDefinedView(); emit flagsChanged(); + emit changeDefinedView(); } }