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_customOutputForToken.clear();
|
||||||
|
|
||||||
m_pendingConsoleStreamOutput.clear();
|
m_pendingConsoleStreamOutput.clear();
|
||||||
m_pendingTargetStreamOutput.clear();
|
|
||||||
m_pendingLogStreamOutput.clear();
|
m_pendingLogStreamOutput.clear();
|
||||||
|
|
||||||
m_inbuffer.clear();
|
m_inbuffer.clear();
|
||||||
@@ -514,8 +513,7 @@ void GdbEngine::handleResponse(const QByteArray &buff)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case '@': {
|
case '@': {
|
||||||
QByteArray data = GdbMi::parseCString(from, to);
|
readDebugeeOutput(GdbMi::parseCString(from, to));
|
||||||
m_pendingTargetStreamOutput += data;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -570,12 +568,9 @@ void GdbEngine::handleResponse(const QByteArray &buff)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//qDebug() << "\nLOG STREAM:" + m_pendingLogStreamOutput;
|
//qDebug() << "\nLOG STREAM:" + m_pendingLogStreamOutput;
|
||||||
//qDebug() << "\nTARGET STREAM:" + m_pendingTargetStreamOutput;
|
|
||||||
//qDebug() << "\nCONSOLE STREAM:" + m_pendingConsoleStreamOutput;
|
//qDebug() << "\nCONSOLE STREAM:" + m_pendingConsoleStreamOutput;
|
||||||
response.data.setStreamOutput("logstreamoutput",
|
response.data.setStreamOutput("logstreamoutput",
|
||||||
m_pendingLogStreamOutput);
|
m_pendingLogStreamOutput);
|
||||||
response.data.setStreamOutput("targetstreamoutput",
|
|
||||||
m_pendingTargetStreamOutput);
|
|
||||||
response.data.setStreamOutput("consolestreamoutput",
|
response.data.setStreamOutput("consolestreamoutput",
|
||||||
m_pendingConsoleStreamOutput);
|
m_pendingConsoleStreamOutput);
|
||||||
QByteArray custom = m_customOutputForToken[token];
|
QByteArray custom = m_customOutputForToken[token];
|
||||||
@@ -584,7 +579,6 @@ void GdbEngine::handleResponse(const QByteArray &buff)
|
|||||||
'{' + custom + '}');
|
'{' + custom + '}');
|
||||||
//m_customOutputForToken.remove(token);
|
//m_customOutputForToken.remove(token);
|
||||||
m_pendingLogStreamOutput.clear();
|
m_pendingLogStreamOutput.clear();
|
||||||
m_pendingTargetStreamOutput.clear();
|
|
||||||
m_pendingConsoleStreamOutput.clear();
|
m_pendingConsoleStreamOutput.clear();
|
||||||
|
|
||||||
handleResultRecord(response);
|
handleResultRecord(response);
|
||||||
|
@@ -287,7 +287,6 @@ private:
|
|||||||
QHash<int, QByteArray> m_customOutputForToken;
|
QHash<int, QByteArray> m_customOutputForToken;
|
||||||
|
|
||||||
QByteArray m_pendingConsoleStreamOutput;
|
QByteArray m_pendingConsoleStreamOutput;
|
||||||
QByteArray m_pendingTargetStreamOutput;
|
|
||||||
QByteArray m_pendingLogStreamOutput;
|
QByteArray m_pendingLogStreamOutput;
|
||||||
|
|
||||||
// contains the first token number for the current round
|
// contains the first token number for the current round
|
||||||
|
Reference in New Issue
Block a user