From daaeb2e594211f47aacf0c025ace817e3d330077 Mon Sep 17 00:00:00 2001 From: Andrew Haberlandt Date: Fri, 27 Dec 2024 01:33:00 -0500 Subject: [PATCH] Fix uc_mcontext field initialization on macOS --- core/unix/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/unix/signal.c b/core/unix/signal.c index 1f44aea51d7..61bc2e7bf90 100644 --- a/core/unix/signal.c +++ b/core/unix/signal.c @@ -7711,7 +7711,7 @@ os_forge_exception(app_pc target_pc, dr_exception_type_t type) kernel_ucontext_t *uc = get_ucontext_from_rt_frame(frame); #if defined(MACOS) - uc->uc_mcontext64 = &frame->mc; + uc->IF_X64_ELSE(uc_mcontext64, uc_mcontext) = (sigcontext_t*)&frame->mc; #endif sigcontext_t *sc = SIGCXT_FROM_UCXT(uc);