mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
Made the "continue", "stepover" and "stepout" functions work when the PC is at a breakpoint
This commit is contained in:
parent
219a5078e8
commit
b331ec96a3
1 changed files with 9 additions and 0 deletions
|
@ -117,6 +117,15 @@ void CCPU::EnableStepping(const bool _bStepping)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// SingleStep so that the "continue", "step over" and "step out" debugger functions
|
||||||
|
// work when the PC is at a breakpoint at the beginning of the block
|
||||||
|
if (PowerPC::breakpoints.IsAddressBreakPoint(PC) && PowerPC::GetMode() != PowerPC::MODE_INTERPRETER)
|
||||||
|
{
|
||||||
|
PowerPC::CoreMode oldMode = PowerPC::GetMode();
|
||||||
|
PowerPC::SetMode(PowerPC::MODE_INTERPRETER);
|
||||||
|
PowerPC::SingleStep();
|
||||||
|
PowerPC::SetMode(oldMode);
|
||||||
|
}
|
||||||
PowerPC::Start();
|
PowerPC::Start();
|
||||||
m_StepEvent.Set();
|
m_StepEvent.Set();
|
||||||
g_video_backend->EmuStateChange(EMUSTATE_CHANGE_PLAY);
|
g_video_backend->EmuStateChange(EMUSTATE_CHANGE_PLAY);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue