aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/SelfInfo/Windows.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2025-12-19 03:14:12 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:10 -0800
commitf96ef9780a4604316ff9bcb5cc2f0775c0de5c79 (patch)
treefb9a9181c452d06960e6aacc3e6c552ff2cb2549 /lib/std/debug/SelfInfo/Windows.zig
parent2f30b0f44d5dbdb80362f181f35504965db733f9 (diff)
downloadzig-f96ef9780a4604316ff9bcb5cc2f0775c0de5c79.tar.gz
zig-f96ef9780a4604316ff9bcb5cc2f0775c0de5c79.zip
SelfInfo.Windows: a few fixes for std.Io
Diffstat (limited to 'lib/std/debug/SelfInfo/Windows.zig')
-rw-r--r--lib/std/debug/SelfInfo/Windows.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/std/debug/SelfInfo/Windows.zig b/lib/std/debug/SelfInfo/Windows.zig
index c296b28702..c34c60f3ec 100644
--- a/lib/std/debug/SelfInfo/Windows.zig
+++ b/lib/std/debug/SelfInfo/Windows.zig
@@ -149,8 +149,9 @@ pub const UnwindContext = struct {
return ctx.cur.getRegs().bp;
}
};
-pub fn unwindFrame(si: *SelfInfo, gpa: Allocator, context: *UnwindContext) Error!usize {
+pub fn unwindFrame(si: *SelfInfo, gpa: Allocator, io: Io, context: *UnwindContext) Error!usize {
_ = si;
+ _ = io;
_ = gpa;
const current_regs = context.cur.getRegs();
@@ -391,7 +392,7 @@ const Module = struct {
.section_view = section_view,
};
};
- errdefer if (mapped_file) |*mf| mf.deinit();
+ errdefer if (mapped_file) |*mf| mf.deinit(io);
const coff_image_base = coff_obj.getImageBase();