From 5cc3ef449cda8119d40f5af2d755ae7a66c898ca Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Thu, 21 Mar 2024 10:50:35 -0700 Subject: [PATCH] I think we want ARM's program counter here. Fixes #797 --- src/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index f30d8f698..149a1e929 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -1135,7 +1135,7 @@ static void *getMcontextEip(ucontext_t *uc) { #elif defined(__i386__) return (void*) uc->uc_mcontext->__ss.__eip; #else - return (void*) uc->uc_mcontext->__ss.__srr0; + return (void*) uc->uc_mcontext->__ss.__pc; #endif #elif defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6) /* OSX >= 10.6 */