debugger: make parsing of new dumper outpuit a bit more robust

This commit is contained in:
hjk
2009-10-16 10:28:03 +02:00
parent e1c8bb407f
commit 73aa3e2164
3 changed files with 8 additions and 2 deletions

View File

@@ -3416,6 +3416,12 @@ void GdbEngine::handleStackFrame2(const GdbResponse &response)
out.chop(1);
//qDebug() << "SECOND CHUNK: " << out;
out = m_firstChunk + out;
int pos = out.indexOf("locals=");
if (pos != 0) {
qDebug() << "DICARDING JUNK AT BEGIN OF RESPONSE: "
<< out.left(pos);
out = out.mid(pos);
}
GdbMi all("[" + out + "]");
//GdbMi all(out);