Skip to content

Commit

Permalink
Merge #3000
Browse files Browse the repository at this point in the history
3000: Allow debugging of EXC_BAD_INSTRUCTION on macOS r=ptitSeb a=ptitSeb

# Description
Also allow EXC_BAD_INSTRUCTION (so SIGILL signal) to be debugged on macOS.

Co-authored-by: ptitSeb <[email protected]>
  • Loading branch information
bors[bot] and ptitSeb authored Jul 4, 2022
2 parents 14d8084 + 2b8aa51 commit 984df1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vm/src/trap/traphandlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 984df1e

Please sign in to comment.