From 2b8aa5174edd9388d6ae3b95803f37034e859480 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 1 Jul 2022 16:03:10 +0200 Subject: [PATCH] Allow debugging of EXC_BAD_INSTRUCTION on macOS --- lib/vm/src/trap/traphandlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vm/src/trap/traphandlers.rs b/lib/vm/src/trap/traphandlers.rs index 263e532845e..97e564d2cf8 100644 --- a/lib/vm/src/trap/traphandlers.rs +++ b/lib/vm/src/trap/traphandlers.rs @@ -183,7 +183,7 @@ cfg_if::cfg_if! { task_set_exception_ports( mach_task_self(), - EXC_MASK_BAD_ACCESS | EXC_MASK_ARITHMETIC, + EXC_MASK_BAD_ACCESS | EXC_MASK_ARITHMETIC | EXC_MASK_BAD_INSTRUCTION, MACH_PORT_NULL, EXCEPTION_STATE_IDENTITY as exception_behavior_t, MACHINE_THREAD_STATE,