From 5f712ea70297112cd0a6a2b5257107fe201093c1 Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 14 Sep 2022 17:30:57 -0400 Subject: Reallow debugger single-step command to break into subroutines during over/out stepping --- src/emu/debug/debugcpu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index aba79d74036..429f5766d68 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -976,6 +976,7 @@ void device_debug::single_step(int numsteps) m_stepsleft = numsteps; m_delay_steps = 0; m_flags |= DEBUG_FLAG_STEPPING; + m_flags &= ~(DEBUG_FLAG_CALL_IN_PROGRESS | DEBUG_FLAG_TEST_IN_PROGRESS); m_device.machine().debugger().cpu().set_execution_running(); } @@ -993,6 +994,7 @@ void device_debug::single_step_over(int numsteps) m_stepsleft = numsteps; m_delay_steps = 0; m_flags |= DEBUG_FLAG_STEPPING_OVER; + m_flags &= ~(DEBUG_FLAG_CALL_IN_PROGRESS | DEBUG_FLAG_TEST_IN_PROGRESS); m_device.machine().debugger().cpu().set_execution_running(); } @@ -1011,6 +1013,7 @@ void device_debug::single_step_out() m_stepsleft = 100; m_delay_steps = 0; m_flags |= DEBUG_FLAG_STEPPING_OUT; + m_flags &= ~(DEBUG_FLAG_CALL_IN_PROGRESS | DEBUG_FLAG_TEST_IN_PROGRESS); m_device.machine().debugger().cpu().set_execution_running(); } @@ -1126,6 +1129,7 @@ void device_debug::go_branch(bool sense, const char *condition) m_stepsleft = 100; m_delay_steps = 0; m_flags |= sense ? DEBUG_FLAG_STEPPING_BRANCH_TRUE : DEBUG_FLAG_STEPPING_BRANCH_FALSE; + m_flags &= ~(DEBUG_FLAG_CALL_IN_PROGRESS | DEBUG_FLAG_TEST_IN_PROGRESS); m_device.machine().debugger().cpu().set_execution_running(); } -- cgit v1.2.3