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

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan McGovern <alan.mcgovern@gmail.com>2012-04-27 12:55:25 +0400
committerAlan McGovern <alan.mcgovern@gmail.com>2012-04-27 12:57:41 +0400
commit54e0a50464edbc254b39ea3c885ee91ada730705 (patch)
tree49bb834b0b4456f8fb7f41bd44efe61cc2212099 /symbols
parente74f530df050f90b24e6c58f1c23c579481267d1 (diff)
[Mono.CompilerServices.SymbolWriter] Fixed MonoSymbolFile Cecil ctor
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=3544
Diffstat (limited to 'symbols')
-rw-r--r--symbols/mdb/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/symbols/mdb/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs b/symbols/mdb/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs
index 937b0a5..6ad39d2 100644
--- a/symbols/mdb/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs
+++ b/symbols/mdb/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs
@@ -446,6 +446,11 @@ namespace Mono.CompilerServices.SymbolWriter
protected MonoSymbolFile (string filename, Mono.Cecil.ModuleDefinition module)
: this (filename)
{
+ // Check that the MDB file matches the module, if we have been
+ // passed a module.
+ if (module == null)
+ return;
+
CheckGuidMatch (module.Mvid, filename, module.FullyQualifiedName);
}
@@ -485,7 +490,7 @@ namespace Mono.CompilerServices.SymbolWriter
public static MonoSymbolFile ReadSymbolFile (string mdbFilename)
{
- return new MonoSymbolFile (mdbFilename, null);
+ return new MonoSymbolFile (mdbFilename);
}
public int CompileUnitCount {