mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
std.os.windows.CONTEXT: add sp field to getRegs() result for x86
This commit is contained in:
parent
70c21fdbab
commit
0ace906477
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user