Skip to content

Commit

Permalink
I think we want ARM's program counter here.
Browse files Browse the repository at this point in the history
Fixes #797
  • Loading branch information
michael-grunder committed Mar 21, 2024
1 parent 2cb5d71 commit 5cc3ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5cc3ef4

Please sign in to comment.