Add uc_mcontext for FreeBSD aarch64

This commit is contained in:
mikael 2021-07-22 14:06:45 +02:00
parent 1aeb5d55dd
commit 689c9cdbb9

View File

@ -186,6 +186,8 @@ static void * getCallerAddress(const ucontext_t & context)
#elif defined(__APPLE__) && defined(__aarch64__)
return reinterpret_cast<void *>(context.uc_mcontext->__ss.__pc);
#elif defined(__FreeBSD__) && defined(__aarch64__)
return reinterpret_cast<void *>(context.uc_mcontext.mc_gpregs.gp_elr);
#elif defined(__aarch64__)
return reinterpret_cast<void *>(context.uc_mcontext.pc);
#elif defined(__powerpc64__)