Skip to content

Commit 47aad3c

Browse files
committed
fix registers for aarch64 on linux
1 parent 459b3c4 commit 47aad3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backtrace/framehop_unwinder.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ fn get_regs_from_context(ucontext: *mut c_void) -> Option<(UnwindRegsNative, u64
5757
}
5858

5959
let regs = unsafe { &(*ucontext).uc_mcontext.regs };
60+
let sp = unsafe { (*ucontext).uc_mcontext.sp };
6061
Some((
61-
UnwindRegsNative::new(regs[30], regs[31], regs[29]),
62+
UnwindRegsNative::new(regs[30], sp, regs[29]),
6263
regs[30],
6364
))
6465
}

0 commit comments

Comments
 (0)