From 9f6e0091b8860c5868c388442c8b065ee359db40 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 12 Jan 2011 14:18:20 +0100
Subject: [PATCH] debugger: compile fix on linux

---
 src/plugins/debugger/cdb/cdbengine.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp
index 5eae14b6a0f..0e2da6c89f8 100644
--- a/src/plugins/debugger/cdb/cdbengine.cpp
+++ b/src/plugins/debugger/cdb/cdbengine.cpp
@@ -1402,12 +1402,13 @@ unsigned CdbEngine::examineStopReason(const QByteArray &messageIn,
     if (reason == "exception") {
         WinException exception;
         exception.fromGdbMI(stopReason);
+        QString description;
 #ifdef Q_OS_WIN
         // It is possible to hit on a startup trap while stepping (if something
         // pulls DLLs. Avoid showing a 'stopped' Message box.
         if (exception.exceptionCode == winExceptionStartupCompleteTrap)
             return StopNotifyStop;
-        const QString description = exception.toString();
+        description = exception.toString();
         // WOW 64 breakpoint: just report in log and continue
         if (exception.exceptionCode == winExceptionWX86Breakpoint) {
             *message = description;
-- 
GitLab