Reallow debugger single-step command to break into subroutines during over/out stepping

This commit is contained in:
AJR 2022-09-14 17:30:57 -04:00
parent c550481ffa
commit 5f712ea702

View file

@ -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();
}