diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp
index 5eae14b6a0f1f7dbb5f27e4ad55fe0b653bfef91..0e2da6c89f8b1ca060b71f89a7f38674938c0c74 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;