mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
CPU: Fix breakpoints/single stepping
This commit is contained in:
parent
4974a8015f
commit
a4c7293d28
|
@ -2075,6 +2075,8 @@ ALWAYS_INLINE_RELEASE static bool BreakpointCheck()
|
||||||
Host::ReportFormattedDebuggerMessage("Hit breakpoint %u at 0x%08X.", bp.number, pc);
|
Host::ReportFormattedDebuggerMessage("Hit breakpoint %u at 0x%08X.", bp.number, pc);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ExitExecution();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2208,6 +2210,8 @@ void Execute()
|
||||||
|
|
||||||
void SingleStep()
|
void SingleStep()
|
||||||
{
|
{
|
||||||
|
s_single_step = true;
|
||||||
|
s_single_step_done = false;
|
||||||
if (fastjmp_set(&s_jmp_buf) == 0)
|
if (fastjmp_set(&s_jmp_buf) == 0)
|
||||||
ExecuteDebug();
|
ExecuteDebug();
|
||||||
Host::ReportFormattedDebuggerMessage("Stepped to 0x%08X.", g_state.pc);
|
Host::ReportFormattedDebuggerMessage("Stepped to 0x%08X.", g_state.pc);
|
||||||
|
|
Loading…
Reference in a new issue