Skip to content

Commit 18c17cd

Browse files
committed
[debugger] Prevent reads from affecting emulation
1 parent 461f697 commit 18c17cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

platforms/shared/desktop/emu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ static void debug_step_instruction(void)
11781178

11791179
emu_debug_halt_step_frames_pending = 0;
11801180

1181-
if (processor->Halted() || (emu_get_core()->GetMemory()->Read(pc) == 0x76))
1181+
if (processor->Halted() || (emu_get_core()->GetMemory()->DebugRetrieve(pc) == 0x76))
11821182
{
11831183
processor->AddRunToBreakpoint(pc + 1);
11841184
emu_debug_halt_step_frames_pending = kDebugHaltStepMaxFrames;

0 commit comments

Comments
 (0)