zig.h: lower trap to SIGTRAP instead of SIGILL

This commit is contained in:
Andrew Kelley 2023-03-04 14:21:57 -07:00
parent 2641feb9b9
commit 34a23db664

View File

@ -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)