std.os.windows.CONTEXT: add sp field to getRegs() result for x86

This commit is contained in:
Alex Rønne Petersen 2025-10-14 09:28:09 +02:00
parent 70c21fdbab
commit 0ace906477
No known key found for this signature in database

View File

@ -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 {