Commit 0acae6f8 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

whoops ... amend output receiver rewrite

- remove stale connect()
- clear buffer after it was completely used
parent e00b90cc
...@@ -270,8 +270,6 @@ void GdbEngine::initializeConnections() ...@@ -270,8 +270,6 @@ void GdbEngine::initializeConnections()
// Output // Output
connect(&m_outputCollector, SIGNAL(byteDelivery(QByteArray)), connect(&m_outputCollector, SIGNAL(byteDelivery(QByteArray)),
SLOT(readDebugeeOutput(QByteArray))); SLOT(readDebugeeOutput(QByteArray)));
connect(this, SIGNAL(gdbResponseAvailable()),
this, SLOT(handleResponse()), Qt::QueuedConnection);
connect(this, SIGNAL(gdbOutputAvailable(QString,QString)), connect(this, SIGNAL(gdbOutputAvailable(QString,QString)),
q, SLOT(showDebuggerOutput(QString,QString)), q, SLOT(showDebuggerOutput(QString,QString)),
...@@ -576,6 +574,7 @@ void GdbEngine::readGdbStandardOutput() ...@@ -576,6 +574,7 @@ void GdbEngine::readGdbStandardOutput()
} }
handleResponse(QByteArray::fromRawData(m_inbuffer.constData() + start, end - start)); handleResponse(QByteArray::fromRawData(m_inbuffer.constData() + start, end - start));
} }
m_inbuffer.clear();
} }
void GdbEngine::interruptInferior() void GdbEngine::interruptInferior()
......
Markdown is supported
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