From a439978f055ab40ff51314df329c084b6817318f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 23 May 2026 09:14:13 +0200 Subject: [PATCH] std.debug.cpu_context: fix alpha-openbsd ucontext_t These fields need to be wrapped in an mcontext field so the common code in fromPosixSignalContext() can work with it. --- lib/std/debug/cpu_context.zig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/std/debug/cpu_context.zig b/lib/std/debug/cpu_context.zig index 4766a124caa8bd2199320bb1f8c2bba8dff4b8a1..29e1731ee4a6b294dd8178237f2fce5954e15ce2 100644 --- a/lib/std/debug/cpu_context.zig +++ b/lib/std/debug/cpu_context.zig @@ -2330,9 +2330,11 @@ const signal_ucontext_t = switch (native_os) { .alpha => extern struct { _cookie: i64, _mask: i64, - pc: u64, - _ps: i64, - r: [32]u64, + mcontext: extern struct { + pc: u64, + _ps: i64, + r: [32]u64, + }, }, // https://github.com/openbsd/src/blob/42468faed8369d07ae49ae02dd71ec34f59b66cd/sys/arch/arm/include/signal.h .arm => extern struct { -- 2.54.0