From 693195804148102964d04e332b0903714ca803cb Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Date: Thu, 18 Jun 2009 12:37:19 +0200
Subject: [PATCH] Recognize DLL not found excption as non-fatal in CDB.

---
 src/plugins/debugger/cdb/cdbexceptionutils.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/plugins/debugger/cdb/cdbexceptionutils.cpp b/src/plugins/debugger/cdb/cdbexceptionutils.cpp
index d21d740d31d..3839ee82272 100644
--- a/src/plugins/debugger/cdb/cdbexceptionutils.cpp
+++ b/src/plugins/debugger/cdb/cdbexceptionutils.cpp
@@ -40,7 +40,8 @@ enum { debugExc = 0 };
 
 // Special exception codes.
 enum { cppExceptionCode = 0xe06d7363, startupCompleteTrap = 0x406d1388,
-       rpcServerUnavailableExceptionCode = 0x6ba };
+       rpcServerUnavailableExceptionCode = 0x6ba,
+       dllNotFoundExceptionCode = 0xc0000135 };
 
 namespace Debugger {
 namespace Internal {
@@ -168,6 +169,9 @@ void formatException(const EXCEPTION_RECORD64 *e, QTextStream &str)
     case startupCompleteTrap:
         str << "Startup complete";
         break;
+    case dllNotFoundExceptionCode:
+        str << "DLL not found";
+        break;
     case EXCEPTION_ACCESS_VIOLATION: {
             const bool writeOperation = e->ExceptionInformation[0];
             str << (writeOperation ? "write" : "read")
@@ -266,6 +270,7 @@ bool isFatalException(LONG code)
     case EXCEPTION_SINGLE_STEP:
     case startupCompleteTrap: // Mysterious exception at start of application
     case rpcServerUnavailableExceptionCode:
+    case dllNotFoundExceptionCode:
         return false;
     default:
         break;
-- 
GitLab