mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
Bug 1388338: fixed undeclared identifier R14_sig and _fp on MacOS X cross compiling to ARM/ARM64. r=bbouvier
MozReview-Commit-ID: 2oewwNgj7fX
This commit is contained in:
parent
e714eb3dea
commit
e467f6da39
@ -255,6 +255,7 @@ class AutoSetHandlingSegFault
|
||||
# define RIP_sig(p) ((p)->uc_mcontext->__ss.__rip)
|
||||
# define RBP_sig(p) ((p)->uc_mcontext->__ss.__rbp)
|
||||
# define RSP_sig(p) ((p)->uc_mcontext->__ss.__rsp)
|
||||
# define R14_sig(p) ((p)->uc_mcontext->__ss.__lr)
|
||||
# define R15_sig(p) ((p)->uc_mcontext->__ss.__pc)
|
||||
#else
|
||||
# error "Don't know how to read/write to the thread state via the mcontext_t."
|
||||
@ -483,7 +484,7 @@ ContextToFP(EMULATOR_CONTEXT* context)
|
||||
# elif defined(__i386__)
|
||||
return (uint8_t*)context->thread.uts.ts32.__ebp;
|
||||
# elif defined(__arm__)
|
||||
return (uint8_t*)context->thread.__fp;
|
||||
return (uint8_t*)context->thread.__r[11];
|
||||
# else
|
||||
# error Unsupported architecture
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user