aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-10-04 07:09:59 +0200
committerGitHub <noreply@github.com>2025-10-04 07:09:59 +0200
commitb54bdace75df63e58892c65f97ff644b95a4b307 (patch)
tree4fb93b4d7e5069dca86fc72e27751a569bab3a96 /lib/std/debug.zig
parente932ab003f8db74c5e4e95177eb02eb0cf0d8449 (diff)
parentb0f280f4a4f3b1f804d84cc71c3e1be54d6e05a8 (diff)
downloadzig-b54bdace75df63e58892c65f97ff644b95a4b307.tar.gz
zig-b54bdace75df63e58892c65f97ff644b95a4b307.zip
Merge pull request #25457 from linusg/more-serenity
std.debug: Add unwind support for serenity
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 4846b3ce93..5b4c5c873c 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -1288,6 +1288,7 @@ pub const have_segfault_handling_support = switch (native_os) {
.windows,
.freebsd,
.openbsd,
+ .serenity,
=> true,
else => false,
@@ -1371,7 +1372,7 @@ fn handleSegfaultPosix(sig: i32, info: *const posix.siginfo_t, ctx_ptr: ?*anyopa
}
const addr: usize = switch (native_os) {
.linux => @intFromPtr(info.fields.sigfault.addr),
- .freebsd, .macos => @intFromPtr(info.addr),
+ .freebsd, .macos, .serenity => @intFromPtr(info.addr),
.netbsd => @intFromPtr(info.info.reason.fault.addr),
.openbsd => @intFromPtr(info.data.fault.addr),
.solaris, .illumos => @intFromPtr(info.reason.fault.addr),