Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2009-12-11 05:42:36 +0300
committerSebastien Pouliot <sebastien@ximian.com>2009-12-11 05:42:36 +0300
commit6ff99b766b30c5f7e7e7687b30308dcd5243191c (patch)
tree08fc9e3151a5453729fc389739de0755dcffda26
parentc7e79cd73617536164d00e8f98aa60efebe3c45f (diff)
2009-12-10 Sebastien Pouliot <sebastien@ximian.com>
* ModuleRocks.cs: Ignore InvalidOperationException (used by the new PdbCCiReader implementation) if the PDB is does not match the assembly (DLL/EXE) [Backport r148085] svn path=/branches/mono-2-6/mono-tools/; revision=148086
-rw-r--r--gendarme/framework/Gendarme.Framework.Rocks/ChangeLog7
-rw-r--r--gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs3
2 files changed, 10 insertions, 0 deletions
diff --git a/gendarme/framework/Gendarme.Framework.Rocks/ChangeLog b/gendarme/framework/Gendarme.Framework.Rocks/ChangeLog
index 5735ec75..55672e45 100644
--- a/gendarme/framework/Gendarme.Framework.Rocks/ChangeLog
+++ b/gendarme/framework/Gendarme.Framework.Rocks/ChangeLog
@@ -1,3 +1,10 @@
+2009-12-10 Sebastien Pouliot <sebastien@ximian.com>
+
+ * ModuleRocks.cs: Ignore InvalidOperationException (used by the
+ new PdbCCiReader implementation) if the PDB is does not match
+ the assembly (DLL/EXE)
+ [Backport r148085]
+
2009-06-10 Jesse Jones <jesjones@mindspring.com>
* TypeRocks.cs: Added AllSuperTypes rock.
diff --git a/gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs b/gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs
index 33a299b0..fa0ab600 100644
--- a/gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs
+++ b/gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs
@@ -128,6 +128,9 @@ namespace Gendarme.Framework.Rocks {
// This makes it possible to catch such exception without a reference to the
// Mono.CompilerServices.SymbolWriter.dll assembly
}
+ catch (InvalidOperationException) {
+ // this happens if the PDB is out of sync with the actual DLL (w/new PdbCciReader)
+ }
// in any case (of failure to load symbols) Gendarme can continue its analysis (but some rules
// can be affected). The HasDebuggingInformation extension method let them adjust themselves
}