diff options
author | Jb Evain <jb@evain.net> | 2017-11-17 01:46:09 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2017-11-17 01:46:09 +0300 |
commit | 023812807c0cb0dfe5bb5752df17b8ec0bf5994b (patch) | |
tree | bfd5218395c6547c466a5f1b6b8f005c19608bae /Mono.Cecil.Cil | |
parent | 7aea484589dc60535e23f7799743e697898352ae (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.cs | 4 |
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. } } |