mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
gdbstub: Fix some gdbstub jankiness
1. Ensure that register information available to gdbstub is most up-to-date. 2. There's no reason to check for current_thread == thread when emitting a trap. Doing this results in random hangs whenever a step happens upon a thread switch.
This commit is contained in:
parent
86f9c9aa1c
commit
1cc9507bc5
|
@ -1389,10 +1389,9 @@ void SendTrap(Kernel::Thread* thread, int trap) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!halt_loop || current_thread == thread) {
|
current_thread = thread;
|
||||||
current_thread = thread;
|
SendSignal(thread, trap);
|
||||||
SendSignal(thread, trap);
|
|
||||||
}
|
|
||||||
halt_loop = true;
|
halt_loop = true;
|
||||||
send_trap = false;
|
send_trap = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue