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:
Igor Denys 2017-08-10 16:20:25 +03:00
Родитель e714eb3dea
Коммит e467f6da39
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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