diff --git a/src/arch/aarch64/interrupt/handler.rs b/src/arch/aarch64/interrupt/handler.rs
index 7adcd80dce60571eed56ae120c0e3f17631c7b64..ca9ff907b8f8eabb592679f4d4632994bfcee081 100644
--- a/src/arch/aarch64/interrupt/handler.rs
+++ b/src/arch/aarch64/interrupt/handler.rs
@@ -348,6 +348,8 @@ macro_rules! exception_stack {
                 // https://github.com/dtolnay/paste/issues/7
                 #[inline(always)]
                 unsafe fn inner($stack: &mut $crate::arch::aarch64::interrupt::InterruptStack) {
+                    let _guard = $crate::ptrace::set_process_regs($stack);
+
                     $code
                 }
                 inner(&mut *stack);