From 29623ecd0b025ac701dd3df10ea5a475154f025a Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 19 Jan 2015 01:46:06 -0800 Subject: [PATCH] Qt: GDB debugger can now accept without blocking main thread --- src/platform/qt/GDBController.cpp | 9 +-------- src/platform/qt/GDBController.h | 3 --- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/platform/qt/GDBController.cpp b/src/platform/qt/GDBController.cpp index da5346d7c..a229a3b66 100644 --- a/src/platform/qt/GDBController.cpp +++ b/src/platform/qt/GDBController.cpp @@ -40,13 +40,13 @@ void GDBController::attach() { 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 @@ void GDBController::listen() { 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(); -} diff --git a/src/platform/qt/GDBController.h b/src/platform/qt/GDBController.h index b0f435c41..ebd80e571 100644 --- a/src/platform/qt/GDBController.h +++ b/src/platform/qt/GDBController.h @@ -35,9 +35,6 @@ public slots: void detach(); void listen(); -private slots: - void updateGDB(); - private: GDBStub m_gdbStub; GameController* m_gameController;