forked from qt-creator/qt-creator
Debugger: Re-introduce the '@\n' separator in LLDB communication
More robust. Change-Id: Icc3c05d5ed7bcf35f38ba695b42a9716d00e8188 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -852,11 +852,11 @@ void LldbEngine::readLldbStandardOutput()
|
||||
showMessage(_("Lldb stdout: " + out));
|
||||
m_inbuffer.append(out);
|
||||
while (true) {
|
||||
int pos = m_inbuffer.indexOf('\n');
|
||||
int pos = m_inbuffer.indexOf("@\n");
|
||||
if (pos == -1)
|
||||
break;
|
||||
QByteArray response = m_inbuffer.left(pos).trimmed();
|
||||
m_inbuffer = m_inbuffer.mid(pos + 1);
|
||||
m_inbuffer = m_inbuffer.mid(pos + 2);
|
||||
emit outputReady(response);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user