Beispiel #1
0
 public new ISymbolReader GetSymbolReader(ModuleDefinition module, string fileName)
 {
     try
     {
         var pdbPath = SymbolHelper.GetPdbFileName(fileName);
         if (!File.Exists(pdbPath))
         {
             return(new NullReader());
         }
         return(base.GetSymbolReader(module, fileName));
     }
     catch (Exception)
     {
         return(new NullReader());
     }
 }
 public ISymbolReader GetSymbolReader(ModuleDefinition module, string fileName)
 {
     try
     {
         var pdbPath = SymbolHelper.GetPdbFileName(fileName);
         if (!File.Exists(pdbPath))
         {
             return(new NullReader());
         }
         // TODO: start reading header and check that the pdb matches the module
         return(_baseProvider.GetSymbolReader(module, fileName));
     }
     catch (Exception)
     {
         return(new NullReader());
     }
 }