Qt: GDB debugger can now accept without blocking main thread
Jeffrey Pfau jeffrey@endrift.com
Mon, 19 Jan 2015 01:46:06 -0800
2 files changed,
1 insertions(+),
11 deletions(-)
M
src/platform/qt/GDBController.cpp
→
src/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.h
→
src/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;