Author: spouliot
Date: 2008-02-16 19:55:10 -0500 (Sat, 16 Feb 2008)
New Revision: 95946

Modified:
   trunk/mono-tools/gendarme/framework/Gendarme.Framework/ChangeLog
   trunk/mono-tools/gendarme/framework/Gendarme.Framework/Runner.cs
Log:
2008-02-16  Sebastien Pouliot  <[EMAIL PROTECTED]> 
        * Runner.cs: Handle case where MDB is unavailable.


Modified: trunk/mono-tools/gendarme/framework/Gendarme.Framework/ChangeLog
===================================================================
--- trunk/mono-tools/gendarme/framework/Gendarme.Framework/ChangeLog    
2008-02-17 00:52:49 UTC (rev 95945)
+++ trunk/mono-tools/gendarme/framework/Gendarme.Framework/ChangeLog    
2008-02-17 00:55:10 UTC (rev 95946)
@@ -1,7 +1,8 @@
-2008-02-16  Sebastien Pouliot  <[EMAIL PROTECTED]>
+2008-02-16  Sebastien Pouliot  <[EMAIL PROTECTED]> 
 
        * Defect.cs: Make ExtractFirst methods static. Rename 
        Get[Type|Method]FromLocation to Find*
+       * Runner.cs: Handle case where MDB is unavailable.
        * TestRunner.cs: Avoid code duplication in Check* methods.
 
 2008-02-15  Sebastien Pouliot  <[EMAIL PROTECTED]>

Modified: trunk/mono-tools/gendarme/framework/Gendarme.Framework/Runner.cs
===================================================================
--- trunk/mono-tools/gendarme/framework/Gendarme.Framework/Runner.cs    
2008-02-17 00:52:49 UTC (rev 95945)
+++ trunk/mono-tools/gendarme/framework/Gendarme.Framework/Runner.cs    
2008-02-17 00:55:10 UTC (rev 95946)
@@ -27,6 +27,7 @@
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
+using System.IO;
 using System.Linq;
 using System.Runtime.InteropServices;
 
@@ -97,8 +98,11 @@
                                try {
                                        assembly.MainModule.LoadSymbols ();
                                }
+                               catch (FileNotFoundException) {
+                                       // this happens if MDB is missing
+                               }
                                catch (TypeLoadException) {
-                                       // this happens if a Mono.Cecil.Mdb.dll 
is not found
+                                       // this happens if the 
Mono.Cecil.Mdb.dll assembly is not found
                                }
                                catch (COMException) {
                                        // this happens if a PDB is missing

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to