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:
hjk
2013-11-01 10:32:37 +01:00
parent 08bb147153
commit 909991164d
2 changed files with 10 additions and 8 deletions

View File

@@ -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);
}
}