commit 0ace906477d0dd1d6e7cb4a02180fc6c09684870 (tree)
parent 70c21fdbab064ca060e5f111010836845ca35930
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Tue, 14 Oct 2025 09:28:09 +0200
std.os.windows.CONTEXT: add sp field to getRegs() result for x86
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig
@@ -4229,8 +4229,8 @@ pub const CONTEXT = switch (native_arch) {
SegSs: DWORD,
ExtendedRegisters: [512]BYTE,
- pub fn getRegs(ctx: *const CONTEXT) struct { bp: usize, ip: usize } {
- return .{ .bp = ctx.Ebp, .ip = ctx.Eip };
+ pub fn getRegs(ctx: *const CONTEXT) struct { bp: usize, ip: usize, sp: usize } {
+ return .{ .bp = ctx.Ebp, .ip = ctx.Eip, .sp = ctx.Esp };
}
},
.x86_64 => extern struct {