Skip to content

Commit

Permalink
arm64: fix LR for libunwind
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrewh committed Aug 20, 2024
1 parent 0be7bf5 commit 42099a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyda_core/pyda_unwind.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int pyda_get_backtrace (pyda_thread *t, char *buf, int size) {
uc2->uc_mcontext.regs[6] = t->cur_context.r6;
uc2->uc_mcontext.regs[7] = t->cur_context.r7;
uc2->uc_mcontext.sp = t->cur_context.sp;
uc2->uc_mcontext.lr = t->cur_context.sp;
uc2->uc_mcontext.regs[30] = t->cur_context.lr;
#else
#error "Unsupported architecture"
#endif
Expand Down

0 comments on commit 42099a7

Please sign in to comment.