authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2025-12-19 03:14:12-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-23 22:15:10-08:00
logf96ef9780a4604316ff9bcb5cc2f0775c0de5c79
treefb9a9181c452d06960e6aacc3e6c552ff2cb2549
parent2f30b0f44d5dbdb80362f181f35504965db733f9

SelfInfo.Windows: a few fixes for std.Io


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

lib/std/debug/SelfInfo/Windows.zig+3-2
...@@ -149,8 +149,9 @@ pub const UnwindContext = struct {...@@ -149,8 +149,9 @@ pub const UnwindContext = struct {
149 return ctx.cur.getRegs().bp;149 return ctx.cur.getRegs().bp;
150 }150 }
151};151};
152pub fn unwindFrame(si: *SelfInfo, gpa: Allocator, context: *UnwindContext) Error!usize {152pub fn unwindFrame(si: *SelfInfo, gpa: Allocator, io: Io, context: *UnwindContext) Error!usize {
153 _ = si;153 _ = si;
154 _ = io;
154 _ = gpa;155 _ = gpa;
155156
156 const current_regs = context.cur.getRegs();157 const current_regs = context.cur.getRegs();
...@@ -391,7 +392,7 @@ const Module = struct {...@@ -391,7 +392,7 @@ const Module = struct {
391 .section_view = section_view,392 .section_view = section_view,
392 };393 };
393 };394 };
394 errdefer if (mapped_file) |*mf| mf.deinit();395 errdefer if (mapped_file) |*mf| mf.deinit(io);
395396
396 const coff_image_base = coff_obj.getImageBase();397 const coff_image_base = coff_obj.getImageBase();
397398