zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 34a23db664e0fe50fb21c892f33b0aec8a7a2f7f (tree)
parent 2641feb9b98e794608917231c2fa775ea4daea06
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Sat,  4 Mar 2023 14:21:57 -0700

zig.h: lower trap to SIGTRAP instead of SIGILL

Diffstat:
Mlib/zig.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)