From 3e6db4ee30edb55f638e998f0317dcb392d4c992 Mon Sep 17 00:00:00 2001 From: Rafael Rivera Date: Fri, 19 Nov 2021 09:10:24 -0800 Subject: [PATCH] Add additional DIA excludes, types --- .../GeneratorSdk/samples/DiaSdk/Dia.manual.cs | 62 ++++++++++++++++++- .../GeneratorSdk/samples/DiaSdk/options.rsp | 6 +- 2 files changed, 65 insertions(+), 3 deletions(-) diff --git a/sources/GeneratorSdk/samples/DiaSdk/Dia.manual.cs b/sources/GeneratorSdk/samples/DiaSdk/Dia.manual.cs index af3f5ef3..65dce33d 100644 --- a/sources/GeneratorSdk/samples/DiaSdk/Dia.manual.cs +++ b/sources/GeneratorSdk/samples/DiaSdk/Dia.manual.cs @@ -82,5 +82,65 @@ namespace Microsoft.Dia [NativeTypeName("HRESULT")] public const int E_PDB_OBJECT_DISPOSED = E_PDB_OK + 25; + + [NativeTypeName("HRESULT")] + public const int E_DIA_INPROLOG = unchecked((int)(((uint)(1)<<31) | ((uint)(((uint)0x6d))<<16) | ((uint)(100)))); + + [NativeTypeName("HRESULT")] + public const int E_DIA_SYNTAX = E_DIA_INPROLOG + 1; + + [NativeTypeName("HRESULT")] + public const int E_DIA_FRAME_ACCESS = E_DIA_INPROLOG + 2; + + [NativeTypeName("HRESULT")] + public const int E_DIA_VALUE = E_DIA_INPROLOG + 3; } -} \ No newline at end of file + + public enum SymTag + { + SymTagNull, + SymTagExe, + SymTagCompiland, + SymTagCompilandDetails, + SymTagCompilandEnv, + SymTagFunction, + SymTagBlock, + SymTagData, + SymTagAnnotation, + SymTagLabel, + SymTagPublicSymbol, + SymTagUDT, + SymTagEnum, + SymTagFunctionType, + SymTagPointerType, + SymTagArrayType, + SymTagBaseType, + SymTagTypedef, + SymTagBaseClass, + SymTagFriend, + SymTagFunctionArgType, + SymTagFuncDebugStart, + SymTagFuncDebugEnd, + SymTagUsingNamespace, + SymTagVTableShape, + SymTagVTable, + SymTagCustom, + SymTagThunk, + SymTagCustomType, + SymTagManagedType, + SymTagDimension, + SymTagCallSite, + SymTagInlineSite, + SymTagBaseInterface, + SymTagVectorType, + SymTagMatrixType, + SymTagHLSLType, + SymTagCaller, + SymTagCallee, + SymTagExport, + SymTagHeapAllocationSite, + SymTagCoffGroup, + SymTagInlinee, + SymTagMax + } +} diff --git a/sources/GeneratorSdk/samples/DiaSdk/options.rsp b/sources/GeneratorSdk/samples/DiaSdk/options.rsp index 839c5c2e..efe4f24c 100644 --- a/sources/GeneratorSdk/samples/DiaSdk/options.rsp +++ b/sources/GeneratorSdk/samples/DiaSdk/options.rsp @@ -1,6 +1,8 @@ --exclude -__MIDL___MIDL_itf_dia2_0000_0033_0001 +SymTagEnum __MIDL___MIDL_itf_dia2_0000_0000_0001 +__MIDL___MIDL_itf_dia2_0000_0033_0001 PfnPDBDebugDirV --remap -__MIDL___MIDL_itf_dia2_0000_0042_0001=FPODATA +SymTagEnum=SymTag +__MIDL___MIDL_itf_dia2_0000_0043_0001=FPODATA