From cb7bc3884009a113d1d51cf4ea44729bd7551134 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Thu, 7 May 2009 10:39:49 +0200
Subject: [PATCH] debugger: don't try to show a reason for stopping if we don't
 know one.

---
 src/plugins/debugger/gdbengine.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp
index 8072b129d05..273a95cbc20 100644
--- a/src/plugins/debugger/gdbengine.cpp
+++ b/src/plugins/debugger/gdbengine.cpp
@@ -1131,7 +1131,10 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data)
                 }
             }
 #endif
-            q->showStatusMessage(tr("Stopped: \"%1\"").arg(_(reason)));
+            if (reason.isEmpty())
+                q->showStatusMessage(tr("Stopped."));
+            else
+                q->showStatusMessage(tr("Stopped: \"%1\"").arg(_(reason)));
             handleAsyncOutput2(data);
         }
         return;
-- 
GitLab