From dbafd89fdfa3439c102f64a4d017410ac1f27ea4 Mon Sep 17 00:00:00 2001
From: ck <qt-info@nokia.com>
Date: Tue, 13 Apr 2010 11:12:43 +0200
Subject: [PATCH] Maemo: Don't expect gdbserver to start immediately.

---
 src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp
index 093ff816167..ea74392ee87 100644
--- a/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp
+++ b/src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp
@@ -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());
-- 
GitLab