Browse Source

Don't ignore portable PDBs; the new cecil should support them.

pull/863/head
Daniel Grunwald 8 years ago
parent
commit
c9304bb966
  1. 10
      ILSpy/LoadedAssembly.cs

10
ILSpy/LoadedAssembly.cs

@ -146,16 +146,6 @@ namespace ICSharpCode.ILSpy @@ -146,16 +146,6 @@ namespace ICSharpCode.ILSpy
if (!module.HasDebugHeader) {
return;
}
byte[] headerBytes;
var debugHeader = module.GetDebugHeader(out headerBytes);
if (debugHeader.Type != 2) {
// the debug type is not IMAGE_DEBUG_TYPE_CODEVIEW
return;
}
if (debugHeader.MajorVersion != 0 || debugHeader.MinorVersion != 0) {
// the PDB type is not compatible with PdbReaderProvider. It is probably a Portable PDB
return;
}
// search for pdb in same directory as dll
string pdbName = Path.Combine(Path.GetDirectoryName(fileName), Path.GetFileNameWithoutExtension(fileName) + ".pdb");

Loading…
Cancel
Save