Commit dbafd89f authored by ck's avatar ck
Browse files

Maemo: Don't expect gdbserver to start immediately.

parent 75b1fcdd
......@@ -407,10 +407,8 @@ void MaemoDebugRunControl::gdbServerStarted(const QString &output)
const int searchStringLength = searchString.length();
int pidStartPos = output.indexOf(searchString);
const int pidEndPos = output.indexOf("\n", pidStartPos + searchStringLength);
if (pidStartPos == -1 || pidEndPos == -1) {
gdbServerStartFailed(output);
return;
}
if (pidStartPos == -1 || pidEndPos == -1)
return; // gdbserver has not started yet.
pidStartPos += searchStringLength;
QString pidString = output.mid(pidStartPos, pidEndPos - pidStartPos);
qDebug("pidString = %s", pidString.toLatin1().data());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment