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
committerJb Evain <jb@evain.net>2017-11-17 01:46:09 +0300
commit023812807c0cb0dfe5bb5752df17b8ec0bf5994b (patch)
treebfd5218395c6547c466a5f1b6b8f005c19608bae /Mono.Cecil.Cil
parent7aea484589dc60535e23f7799743e697898352ae (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')
-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 85c5334..ac6157e 100644
--- a/Mono.Cecil.Cil/Symbols.cs
+++ b/Mono.Cecil.Cil/Symbols.cs
@@ -784,7 +784,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.
}
}
@@ -793,7 +793,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.
}
}