From 34a23db664e0fe50fb21c892f33b0aec8a7a2f7f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 4 Mar 2023 14:21:57 -0700 Subject: [PATCH] zig.h: lower trap to SIGTRAP instead of SIGILL --- lib/zig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zig.h b/lib/zig.h index 22a9dbbb9e..65fb21f99a 100644 --- a/lib/zig.h +++ b/lib/zig.h @@ -193,7 +193,7 @@ typedef char bool; #elif defined(__i386__) || defined(__x86_64__) #define zig_trap() __asm__ volatile("ud2"); #else -#define zig_trap() raise(SIGILL) +#define zig_trap() raise(SIGTRAP) #endif #if zig_has_builtin(debugtrap)