commit a439978f055ab40ff51314df329c084b6817318f (tree)
parent b87caa45464cbad80c9aa6d758edefeeced1475f
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Sat, 23 May 2026 09:14:13 +0200
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.
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git 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 {