Add a context definition for OpenBSD amd64.

This commit is contained in:
Anthony J. Bentley 2016-07-17 19:03:47 -06:00
commit b0f4a2b959
2 changed files with 29 additions and 1 deletions

View file

@ -248,8 +248,12 @@ static void sigsegv_handler(int sig, siginfo_t* info, void* raw_context)
}
uintptr_t bad_address = (uintptr_t)info->si_addr;
// Get all the information we can out of the context.
// Get all the information we can out of the context.
#ifdef __OpenBSD__
ucontext_t* ctx = context;
#else
mcontext_t* ctx = &context->uc_mcontext;
#endif
// assume it's not a write
if (!JitInterface::HandleFault(bad_address,
#ifdef __APPLE__