From ee553afebcb7af6493641723aba874c13b1fb6bf Mon Sep 17 00:00:00 2001 From: Kingcom Date: Fri, 8 Nov 2013 17:41:50 +0100 Subject: [PATCH] Reset cycle counter when stepping out --- Windows/Debugger/Debugger_Disasm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Windows/Debugger/Debugger_Disasm.cpp b/Windows/Debugger/Debugger_Disasm.cpp index 741303ac1a..4e33ca76e4 100644 --- a/Windows/Debugger/Debugger_Disasm.cpp +++ b/Windows/Debugger/Debugger_Disasm.cpp @@ -283,6 +283,7 @@ void CDisasm::stepOut() auto frames = MIPSStackWalk::Walk(cpu->GetPC(),cpu->GetRegValue(0,31),cpu->GetRegValue(0,29),entry,stackTop); if (frames.size() < 2) return; u32 breakpointAddress = frames[1].pc; + lastTicks = CoreTiming::GetTicks(); // If the current PC is on a breakpoint, the user doesn't want to do nothing. CBreakPoints::SetSkipFirst(currentMIPS->pc);