Revert "[sanitizers] read/write page fault detection on mac."
This reverts commit r267477. It broke our bots that enables the AArch64 backends, it seems that this code is using a Darwin *X86 specific* field. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 267526
This commit is contained in:
parent
65c133272e
commit
9163f4997a
|
@ -500,8 +500,7 @@ void LogFullErrorReport(const char *buffer) {
|
|||
}
|
||||
|
||||
SignalContext::WriteFlag SignalContext::GetWriteFlag(void *context) {
|
||||
ucontext_t *ucontext = static_cast<ucontext_t*>(context);
|
||||
return ucontext->uc_mcontext->__es.__err & 2 /*T_PF_WRITE*/ ? WRITE : READ;
|
||||
return UNKNOWN; // FIXME: implement this.
|
||||
}
|
||||
|
||||
void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) {
|
||||
|
|
Loading…
Reference in New Issue