1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-23 03:33:35 +00:00

Added Visual Studio 2022 and Windows ARM 64bit support

This commit is contained in:
Ylian Saint-Hilaire
2023-04-14 13:20:45 -07:00
parent 06cef1a520
commit 38f8926ba3
10 changed files with 2687 additions and 0 deletions

View File

@@ -2713,6 +2713,14 @@ void ILib_WindowsExceptionDebugEx(ILib_DumpEnabledContext *dumpEnabledExceptionC
StackFrame.AddrFrame.Mode = AddrModeFlat;
StackFrame.AddrStack.Offset = exceptionContext->Esp;
StackFrame.AddrStack.Mode = AddrModeFlat;
#elif ARM64
MachineType = IMAGE_FILE_MACHINE_ARM64;
StackFrame.AddrPC.Offset = exceptionContext->Pc;
StackFrame.AddrPC.Mode = AddrModeFlat;
StackFrame.AddrFrame.Offset = exceptionContext->Sp;
StackFrame.AddrFrame.Mode = AddrModeFlat;
StackFrame.AddrStack.Offset = exceptionContext->Sp;
StackFrame.AddrStack.Mode = AddrModeFlat;
#else
MachineType = IMAGE_FILE_MACHINE_AMD64;
StackFrame.AddrPC.Offset = exceptionContext->Rip;
@@ -3039,6 +3047,14 @@ char* ILibChain_Debug(void *chain, char* buffer, int bufferLen)
StackFrame.AddrFrame.Mode = AddrModeFlat;
StackFrame.AddrStack.Offset = bChain != NULL ? bChain->MicrostackThreadContext.Esp : ctx.Esp;
StackFrame.AddrStack.Mode = AddrModeFlat;
#elif ARM64
MachineType = IMAGE_FILE_MACHINE_ARM64;
StackFrame.AddrPC.Offset = bChain != NULL ? bChain->MicrostackThreadContext.Pc : ctx.Pc;
StackFrame.AddrPC.Mode = AddrModeFlat;
StackFrame.AddrFrame.Offset = bChain != NULL ? bChain->MicrostackThreadContext.Sp : ctx.Sp;
StackFrame.AddrFrame.Mode = AddrModeFlat;
StackFrame.AddrStack.Offset = bChain != NULL ? bChain->MicrostackThreadContext.Sp : ctx.Sp;
StackFrame.AddrStack.Mode = AddrModeFlat;
#else
MachineType = IMAGE_FILE_MACHINE_AMD64;
StackFrame.AddrPC.Offset = bChain != NULL ? bChain->MicrostackThreadContext.Rip : ctx.Rip;