Improve GDB debug server (#4027)

* Made GDB debugger working with IDA

* Added async interrupts support

* Report proper thread after pausing

* Support attaching debugger before running app
This commit is contained in:
Andrey 2018-02-28 16:31:39 +01:00 committed by Ivan
parent 2444385763
commit e0f53ace19
4 changed files with 78 additions and 33 deletions

View file

@ -296,7 +296,7 @@ static bool ppu_break(ppu_thread& ppu, ppu_opcode_t op)
// Pause and wait if necessary
bool status = ppu.state.test_and_set(cpu_flag::dbg_pause);
#ifdef WITH_GDB_DEBUGGER
fxm::get<GDBDebugServer>()->notify();
fxm::get<GDBDebugServer>()->pause_from(&ppu);
#endif
if (!status && ppu.check_state())
{