Permalink
Browse files

Merge pull request #99 from mono/master

Fix a bug wrt mono symbol files
  • Loading branch information...
2 parents e74f530 + 54e0a50 commit e41dd1b4dc1d1c015b6c34ea24664b7eb3bece6b @jbevain jbevain committed Apr 30, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 symbols/mdb/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs
@@ -446,6 +446,11 @@ void CheckGuidMatch (Guid other, string filename, string assembly)
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 @@ public static MonoSymbolFile ReadSymbolFile (Assembly assembly)
public static MonoSymbolFile ReadSymbolFile (string mdbFilename)
{
- return new MonoSymbolFile (mdbFilename, null);
+ return new MonoSymbolFile (mdbFilename);
}
public int CompileUnitCount {

0 comments on commit e41dd1b

Please sign in to comment.