mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 08:23:01 +00:00
Merge pull request #716 from smb123w64gb/patch-1
Update Backward to work on ARM64 WIndows builds!
This commit is contained in:
commit
a48f0048ff
1 changed files with 6 additions and 0 deletions
6
extern/backward/backward.hpp
vendored
6
extern/backward/backward.hpp
vendored
|
@ -1159,6 +1159,10 @@ public:
|
||||||
s.AddrPC.Offset = ctx_->Rip;
|
s.AddrPC.Offset = ctx_->Rip;
|
||||||
s.AddrStack.Offset = ctx_->Rsp;
|
s.AddrStack.Offset = ctx_->Rsp;
|
||||||
s.AddrFrame.Offset = ctx_->Rbp;
|
s.AddrFrame.Offset = ctx_->Rbp;
|
||||||
|
#elif _M_ARM64
|
||||||
|
s.AddrPC.Offset = ctx_->Pc;
|
||||||
|
s.AddrStack.Offset = ctx_->Sp;
|
||||||
|
s.AddrFrame.Offset = ctx_->Fp;
|
||||||
#else
|
#else
|
||||||
s.AddrPC.Offset = ctx_->Eip;
|
s.AddrPC.Offset = ctx_->Eip;
|
||||||
s.AddrStack.Offset = ctx_->Esp;
|
s.AddrStack.Offset = ctx_->Esp;
|
||||||
|
@ -1168,6 +1172,8 @@ public:
|
||||||
if (!machine_type_) {
|
if (!machine_type_) {
|
||||||
#ifdef _M_X64
|
#ifdef _M_X64
|
||||||
machine_type_ = IMAGE_FILE_MACHINE_AMD64;
|
machine_type_ = IMAGE_FILE_MACHINE_AMD64;
|
||||||
|
#elif _M_ARM64
|
||||||
|
machine_type_ = IMAGE_FILE_MACHINE_ARM64;
|
||||||
#else
|
#else
|
||||||
machine_type_ = IMAGE_FILE_MACHINE_I386;
|
machine_type_ = IMAGE_FILE_MACHINE_I386;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue