mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
Reallow debugger single-step command to break into subroutines during over/out stepping
This commit is contained in:
parent
c550481ffa
commit
5f712ea702
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue