all repos — mgba @ 29623ecd0b025ac701dd3df10ea5a475154f025a

mGBA Game Boy Advance Emulator

Qt: GDB debugger can now accept without blocking main thread
Jeffrey Pfau jeffrey@endrift.com
Mon, 19 Jan 2015 01:46:06 -0800
commit

29623ecd0b025ac701dd3df10ea5a475154f025a

parent

ddfffd22de0a1b726aa16c509a31f26a6ff54edd

2 files changed, 1 insertions(+), 11 deletions(-)

jump to
M src/platform/qt/GDBController.cppsrc/platform/qt/GDBController.cpp

@@ -40,13 +40,13 @@ if (isAttached()) {

return; } m_gameController->setDebugger(&m_gdbStub.d); + ARMDebuggerEnter(&m_gdbStub.d, DEBUGGER_ENTER_ATTACHED); } void GDBController::detach() { if (!isAttached()) { return; } - disconnect(m_gameController, SIGNAL(frameAvailable(const uint32_t*)), this, SLOT(updateGDB())); m_gameController->threadInterrupt(); GDBStubShutdown(&m_gdbStub); m_gameController->setDebugger(nullptr);

@@ -58,13 +58,6 @@ m_gameController->threadInterrupt();

if (!isAttached()) { attach(); } - connect(m_gameController, SIGNAL(frameAvailable(const uint32_t*)), this, SLOT(updateGDB())); GDBStubListen(&m_gdbStub, m_port, &m_bindAddress); m_gameController->threadContinue(); } - -void GDBController::updateGDB() { - m_gameController->threadInterrupt(); - GDBStubUpdate(&m_gdbStub); - m_gameController->threadContinue(); -}
M src/platform/qt/GDBController.hsrc/platform/qt/GDBController.h

@@ -35,9 +35,6 @@ void attach();

void detach(); void listen(); -private slots: - void updateGDB(); - private: GDBStub m_gdbStub; GameController* m_gameController;