Browse Source

Hack to ignore unloaded interfaces (will fix properly later)

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6341 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 16 years ago
parent
commit
158ad95cb9
  1. 6
      src/AddIns/Debugger/Debugger.Core/MetaData/DebugType.cs

6
src/AddIns/Debugger/Debugger.Core/MetaData/DebugType.cs

@ -1276,7 +1276,11 @@ namespace Debugger.MetaData
foreach(InterfaceImplProps implProps in module.MetaData.EnumInterfaceImplProps((uint)this.MetadataToken)) { foreach(InterfaceImplProps implProps in module.MetaData.EnumInterfaceImplProps((uint)this.MetadataToken)) {
CorTokenType tkType = (CorTokenType)(implProps.Interface & 0xFF000000); CorTokenType tkType = (CorTokenType)(implProps.Interface & 0xFF000000);
if (tkType == CorTokenType.TypeDef || tkType == CorTokenType.TypeRef) { if (tkType == CorTokenType.TypeDef || tkType == CorTokenType.TypeRef) {
this.interfaces.Add(DebugType.CreateFromTypeDefOrRef(module, false, implProps.Interface, null)); // TODO: Fix properly
try {
this.interfaces.Add(DebugType.CreateFromTypeDefOrRef(module, false, implProps.Interface, null));
} catch (DebuggerException) {
}
} else if (tkType == CorTokenType.TypeSpec) { } else if (tkType == CorTokenType.TypeSpec) {
this.interfaces.Add(DebugType.CreateFromTypeSpec(module, implProps.Interface, this)); this.interfaces.Add(DebugType.CreateFromTypeSpec(module, implProps.Interface, this));
} else { } else {

Loading…
Cancel
Save