forked from qt-creator/qt-creator
use gdb's target stream output
at least in theory, this is the output of a remote debuggee
This commit is contained in:
@@ -284,7 +284,6 @@ void GdbEngine::initializeVariables()
|
||||
m_customOutputForToken.clear();
|
||||
|
||||
m_pendingConsoleStreamOutput.clear();
|
||||
m_pendingTargetStreamOutput.clear();
|
||||
m_pendingLogStreamOutput.clear();
|
||||
|
||||
m_inbuffer.clear();
|
||||
@@ -514,8 +513,7 @@ void GdbEngine::handleResponse(const QByteArray &buff)
|
||||
}
|
||||
|
||||
case '@': {
|
||||
QByteArray data = GdbMi::parseCString(from, to);
|
||||
m_pendingTargetStreamOutput += data;
|
||||
readDebugeeOutput(GdbMi::parseCString(from, to));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -570,12 +568,9 @@ void GdbEngine::handleResponse(const QByteArray &buff)
|
||||
}
|
||||
|
||||
//qDebug() << "\nLOG STREAM:" + m_pendingLogStreamOutput;
|
||||
//qDebug() << "\nTARGET STREAM:" + m_pendingTargetStreamOutput;
|
||||
//qDebug() << "\nCONSOLE STREAM:" + m_pendingConsoleStreamOutput;
|
||||
response.data.setStreamOutput("logstreamoutput",
|
||||
m_pendingLogStreamOutput);
|
||||
response.data.setStreamOutput("targetstreamoutput",
|
||||
m_pendingTargetStreamOutput);
|
||||
response.data.setStreamOutput("consolestreamoutput",
|
||||
m_pendingConsoleStreamOutput);
|
||||
QByteArray custom = m_customOutputForToken[token];
|
||||
@@ -584,7 +579,6 @@ void GdbEngine::handleResponse(const QByteArray &buff)
|
||||
'{' + custom + '}');
|
||||
//m_customOutputForToken.remove(token);
|
||||
m_pendingLogStreamOutput.clear();
|
||||
m_pendingTargetStreamOutput.clear();
|
||||
m_pendingConsoleStreamOutput.clear();
|
||||
|
||||
handleResultRecord(response);
|
||||
|
@@ -287,7 +287,6 @@ private:
|
||||
QHash<int, QByteArray> m_customOutputForToken;
|
||||
|
||||
QByteArray m_pendingConsoleStreamOutput;
|
||||
QByteArray m_pendingTargetStreamOutput;
|
||||
QByteArray m_pendingLogStreamOutput;
|
||||
|
||||
// contains the first token number for the current round
|
||||
|
Reference in New Issue
Block a user