From e6af961d9d67cf6868f4b059e7c6cb7c22023ee7 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 11 May 2026 11:02:10 +0200 Subject: [PATCH] Core/CrashHandler: Update enums from DIA SDK --- .../Debugging/Windows/WheatyExceptionReport.h | 61 ++++++++++++++++++- 1 file changed, 58 insertions(+), 3 deletions(-) diff --git a/src/common/Debugging/Windows/WheatyExceptionReport.h b/src/common/Debugging/Windows/WheatyExceptionReport.h index 8463d7e23d..9c4cab639b 100644 --- a/src/common/Debugging/Windows/WheatyExceptionReport.h +++ b/src/common/Debugging/Windows/WheatyExceptionReport.h @@ -1,8 +1,6 @@ #ifndef _WHEATYEXCEPTIONREPORT_ #define _WHEATYEXCEPTIONREPORT_ -#define _NO_CVCONST_H - #include "Define.h" #include "Optional.h" #include @@ -41,6 +39,10 @@ enum BasicType // Stolen from CVCON btBit = 29, btBSTR = 30, btHresult = 31, + btChar16 = 32, // char16_t + btChar32 = 33, // char32_t + btChar8 = 34, // char8_t + btVector = 35, // Custom types btStdString = 101 @@ -60,6 +62,55 @@ enum DataKind // Stolen from CVCONS DataIsConstant }; +enum SymTagEnum // Stolen from CVCONST.H in the DIA 2.0 SDK +{ + 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, + SymTagTaggedUnionCase, + SymTagMax +}; + enum CpuRegister // Stolen from CVCONST.H in the DIA SDK { CV_ALLREG_VFRAME= 30006, @@ -284,7 +335,11 @@ char const* const rgBaseType[] = "", // btComplex = 28, "", // btBit = 29, "BSTR", // btBSTR = 30, - "HRESULT" // btHresult = 31 + "HRESULT", // btHresult = 31 + "char16_t", + "char32_t", + "char8_t", + "" }; struct SymbolPair