Skip to content

Commit

Permalink
Fix uc_mcontext field initialization on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrewh committed Dec 27, 2024
1 parent 7d1af39 commit daaeb2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/unix/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit daaeb2e

Please sign in to comment.