Skip to content

Commit

Permalink
Merge pull request #99 from mono/master
Browse files Browse the repository at this point in the history
Fix a bug wrt mono symbol files
  • Loading branch information
jbevain committed Apr 30, 2012
2 parents e74f530 + 54e0a50 commit e41dd1b
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e41dd1b

Please sign in to comment.