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:
authorJb Evain <jb@evain.net>2017-11-17 01:46:09 +0300
committerMarek Safar <marek.safar@gmail.com>2017-11-17 22:47:27 +0300
commiteea46c1a1357010bdc10adbd9d9b49106aa1f4c8 (patch)
treef8de5f158db0e0c035c3407e191ac9b1391be76a /Mono.Cecil.Cil/Symbols.cs
parentbc11f472954694ebd92ae4956f110c1036a7c2e0 (diff)
If GetReaderProvider throws for any reason, we consider there's no symbol for the assembly in the DefaultSymbolReader
Diffstat (limited to 'Mono.Cecil.Cil/Symbols.cs')
-rw-r--r--Mono.Cecil.Cil/Symbols.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mono.Cecil.Cil/Symbols.cs b/Mono.Cecil.Cil/Symbols.cs
index 6ef5ad2..b0ada58 100644
--- a/Mono.Cecil.Cil/Symbols.cs
+++ b/Mono.Cecil.Cil/Symbols.cs
@@ -782,7 +782,7 @@ namespace Mono.Cecil.Cil {
try {
return SymbolProvider.GetReaderProvider (SymbolKind.NativePdb).GetSymbolReader (module, fileName);
- } catch (TypeLoadException) {
+ } catch (Exception) {
// We might not include support for native pdbs.
}
}
@@ -791,7 +791,7 @@ namespace Mono.Cecil.Cil {
if (File.Exists (mdb_file_name)) {
try {
return SymbolProvider.GetReaderProvider (SymbolKind.Mdb).GetSymbolReader (module, fileName);
- } catch (TypeLoadException) {
+ } catch (Exception) {
// We might not include support for mdbs.
}
}