GDBStub: Correctly inform the CPU thread if we are stepping

This commit is contained in:
aldelaro5
2021-10-01 01:33:40 -04:00
parent b9b7c4ac80
commit b8395280d3
2 changed files with 3 additions and 8 deletions

View File

@ -141,6 +141,9 @@ void Run()
{
gdb_signal(GDB_SIGTRAP);
gdb_handle_exception(true);
// If we are still going to step, emulate the fact we just sent a step command
if (gdb_hasControl())
s_state_cpu_step_instruction = true;
}
state_lock.lock();
#endif