Update Backward to work on ARM64 WIndows builds!

This commit is contained in:
smb123w64gb 2022-10-16 10:14:51 -07:00 committed by GitHub
parent ecd5662d9b
commit fdcabe4485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -1159,6 +1159,10 @@ public:
s.AddrPC.Offset = ctx_->Rip;
s.AddrStack.Offset = ctx_->Rsp;
s.AddrFrame.Offset = ctx_->Rbp;
#elif _M_ARM64
s.AddrPC.Offset = ctx_->Pc;
s.AddrStack.Offset = ctx_->Sp;
s.AddrFrame.Offset = ctx_->Fp;
#else
s.AddrPC.Offset = ctx_->Eip;
s.AddrStack.Offset = ctx_->Esp;
@ -1168,6 +1172,8 @@ public:
if (!machine_type_) {
#ifdef _M_X64
machine_type_ = IMAGE_FILE_MACHINE_AMD64;
#elif _M_ARM64
machine_type_ = IMAGE_FILE_MACHINE_ARM64;
#else
machine_type_ = IMAGE_FILE_MACHINE_I386;
#endif