Fix highlighting in RIP when restarting emu/debug

This commit is contained in:
mandlebro 2018-07-24 00:13:09 +01:00 committed by xarkes
parent 94c0f2b5c2
commit a55147a0f5

View File

@ -787,6 +787,7 @@ void CutterCore::setRegister(QString regName, QString regValue)
{ {
cmd("dr " + regName + "=" + regValue); cmd("dr " + regName + "=" + regValue);
emit registersChanged(); emit registersChanged();
emit refreshCodeViews();
} }
void CutterCore::startDebug() void CutterCore::startDebug()
@ -824,8 +825,8 @@ void CutterCore::startEmulation()
currentlyEmulating = true; currentlyEmulating = true;
emit changeDebugView(); emit changeDebugView();
emit flagsChanged(); emit flagsChanged();
emit refreshCodeViews();
} }
emit refreshCodeViews();
} }
void CutterCore::attachDebug(int pid) void CutterCore::attachDebug(int pid)
@ -842,8 +843,8 @@ void CutterCore::attachDebug(int pid)
// prevent register flags from appearing during debug/emul // prevent register flags from appearing during debug/emul
setConfig("asm.flags", false); setConfig("asm.flags", false);
currentlyDebugging = true; currentlyDebugging = true;
emit changeDebugView();
emit flagsChanged(); emit flagsChanged();
emit changeDebugView();
} }
} }
@ -861,8 +862,8 @@ void CutterCore::stopDebug()
setConfig("asm.flags", true); setConfig("asm.flags", true);
setConfig("io.cache", false); setConfig("io.cache", false);
currentlyDebugging = false; currentlyDebugging = false;
emit changeDefinedView();
emit flagsChanged(); emit flagsChanged();
emit changeDefinedView();
} }
} }