Browse Source

Add TypeDefinitionDocuments to custom debug information data

pull/2578/head
David Wengier 3 years ago
parent
commit
52628a219a
  1. 1
      ICSharpCode.Decompiler/DebugInfo/KnownGuids.cs
  2. 10
      ILSpy/Metadata/DebugTables/CustomDebugInformationTableTreeNode.cs

1
ICSharpCode.Decompiler/DebugInfo/KnownGuids.cs

@ -21,6 +21,7 @@ namespace ICSharpCode.Decompiler.DebugInfo
public static readonly Guid CompilationOptions = new Guid("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); public static readonly Guid CompilationOptions = new Guid("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8");
public static readonly Guid CompilationMetadataReferences = new Guid("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); public static readonly Guid CompilationMetadataReferences = new Guid("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D");
public static readonly Guid TupleElementNames = new Guid("ED9FDF71-8879-4747-8ED3-FE5EDE3CE710"); public static readonly Guid TupleElementNames = new Guid("ED9FDF71-8879-4747-8ED3-FE5EDE3CE710");
public static readonly Guid TypeDefinitionDocuments = new Guid("932E74BC-DBA9-4478-8D46-0F32A7BAB3D3");
public static readonly Guid HashAlgorithmSHA1 = new Guid("ff1816ec-aa5e-4d10-87f7-6f4963833460"); public static readonly Guid HashAlgorithmSHA1 = new Guid("ff1816ec-aa5e-4d10-87f7-6f4963833460");
public static readonly Guid HashAlgorithmSHA256 = new Guid("8829d00f-11b8-4213-878b-770e8597ac16"); public static readonly Guid HashAlgorithmSHA256 = new Guid("8829d00f-11b8-4213-878b-770e8597ac16");

10
ILSpy/Metadata/DebugTables/CustomDebugInformationTableTreeNode.cs

@ -125,7 +125,8 @@ namespace ICSharpCode.ILSpy.Metadata
MethodSteppingInformation, MethodSteppingInformation,
CompilationOptions, CompilationOptions,
CompilationMetadataReferences, CompilationMetadataReferences,
TupleElementNames TupleElementNames,
TypeDefinitionDocuments
} }
static CustomDebugInformationKind GetKind(MetadataReader metadata, GuidHandle h) static CustomDebugInformationKind GetKind(MetadataReader metadata, GuidHandle h)
@ -177,6 +178,10 @@ namespace ICSharpCode.ILSpy.Metadata
{ {
return CustomDebugInformationKind.TupleElementNames; return CustomDebugInformationKind.TupleElementNames;
} }
if (KnownGuids.TypeDefinitionDocuments == guid)
{
return CustomDebugInformationKind.TypeDefinitionDocuments;
}
return CustomDebugInformationKind.Unknown; return CustomDebugInformationKind.Unknown;
} }
@ -251,6 +256,9 @@ namespace ICSharpCode.ILSpy.Metadata
case CustomDebugInformationKind.TupleElementNames: case CustomDebugInformationKind.TupleElementNames:
kindString = $"{MetadataTokens.GetHeapOffset(debugInfo.Kind):X8} - Tuple Element Names (C#) [{ guid}]"; kindString = $"{MetadataTokens.GetHeapOffset(debugInfo.Kind):X8} - Tuple Element Names (C#) [{ guid}]";
break; break;
case CustomDebugInformationKind.TypeDefinitionDocuments:
kindString = $"{MetadataTokens.GetHeapOffset(debugInfo.Kind):X8} - Type Definition Documents (C# / VB) [{ guid}]";
break;
default: default:
kindString = $"{MetadataTokens.GetHeapOffset(debugInfo.Kind):X8} - Unknown [{guid}]"; kindString = $"{MetadataTokens.GetHeapOffset(debugInfo.Kind):X8} - Unknown [{guid}]";
break; break;

Loading…
Cancel
Save