Commit 6364c936 authored by Pawel Polanski's avatar Pawel Polanski
Browse files

CODA: Creator crashed when more than one debugging session is launched

The problem here is in the callback mechanism. When CodaGdbAdapter is closed
it tries to close the application on the mobile. If the CodaGdbAdapter is destroyed
short afterwards the response is propagated to an invalid object.

Task-number: QTCREATORBUG-4713
parent b8e6fd2b
......@@ -163,6 +163,9 @@ void CodaGdbAdapter::setupTrkDeviceSignals()
if (m_codaDevice)
logMessage("Shutting down.\n");
......@@ -1222,6 +1225,8 @@ void CodaGdbAdapter::cleanup()
m_gdbServer = 0;
if (m_codaDevice) {
// Ensure process is stopped after being suspended.
// This cannot be used when the object is deleted
// as the responce will return to a not existing object
disconnect(, 0, this, 0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment