authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-14 09:28:09+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-15 13:59:17+02:00
log0ace906477d0dd1d6e7cb4a02180fc6c09684870
tree0e7e788cf0d1367fd019428c7b40ea000c5f2175
parent70c21fdbab064ca060e5f111010836845ca35930
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/os/windows.zig+2-2
...@@ -4229,8 +4229,8 @@ pub const CONTEXT = switch (native_arch) {...@@ -4229,8 +4229,8 @@ pub const CONTEXT = switch (native_arch) {
4229 SegSs: DWORD,4229 SegSs: DWORD,
4230 ExtendedRegisters: [512]BYTE,4230 ExtendedRegisters: [512]BYTE,
42314231
4232 pub fn getRegs(ctx: *const CONTEXT) struct { bp: usize, ip: usize } {4232 pub fn getRegs(ctx: *const CONTEXT) struct { bp: usize, ip: usize, sp: usize } {
4233 return .{ .bp = ctx.Ebp, .ip = ctx.Eip };4233 return .{ .bp = ctx.Ebp, .ip = ctx.Eip, .sp = ctx.Esp };
4234 }4234 }
4235 },4235 },
4236 .x86_64 => extern struct {4236 .x86_64 => extern struct {