Merge pull request #716 from smb123w64gb/patch-1

Update Backward to work on ARM64 WIndows builds!
This commit is contained in:
tildearrow 2022-10-16 19:41:17 -05:00 committed by GitHub
commit a48f0048ff
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