I think we want ARM's program counter here.

Fixes #797
This commit is contained in:
michael-grunder 2024-03-21 10:50:35 -07:00 committed by John Sully
parent 0731a0509a
commit 603ebb27fb

View File

@ -1135,7 +1135,7 @@ static void *getMcontextEip(ucontext_t *uc) {
#elif defined(__i386__) #elif defined(__i386__)
return (void*) uc->uc_mcontext->__ss.__eip; return (void*) uc->uc_mcontext->__ss.__eip;
#else #else
return (void*) uc->uc_mcontext->__ss.__srr0; return (void*) uc->uc_mcontext->__ss.__pc;
#endif #endif
#elif defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6) #elif defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)
/* OSX >= 10.6 */ /* OSX >= 10.6 */