aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-10-19 20:44:06 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-10-29 06:20:50 -0700
commitf98352eecf1db704b0e59ced1c6741734c3990ac (patch)
treef05f6326a229d60eabd5b2ba92d5ffaae5fe759b /lib/std
parented7747e90fcf6c26860788d4b0aafdaa07c8e068 (diff)
downloadzig-f98352eecf1db704b0e59ced1c6741734c3990ac.tar.gz
zig-f98352eecf1db704b0e59ced1c6741734c3990ac.zip
std.debug.SelfInfo: add missing io parameter to getSymbol
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/debug/SelfInfo/Elf.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/debug/SelfInfo/Elf.zig b/lib/std/debug/SelfInfo/Elf.zig
index bf8330d235..21319b01d4 100644
--- a/lib/std/debug/SelfInfo/Elf.zig
+++ b/lib/std/debug/SelfInfo/Elf.zig
@@ -28,7 +28,8 @@ pub fn deinit(si: *SelfInfo, gpa: Allocator) void {
if (si.unwind_cache) |cache| gpa.free(cache);
}
-pub fn getSymbol(si: *SelfInfo, gpa: Allocator, address: usize) Error!std.debug.Symbol {
+pub fn getSymbol(si: *SelfInfo, gpa: Allocator, io: Io, address: usize) Error!std.debug.Symbol {
+ _ = io;
const module = try si.findModule(gpa, address, .exclusive);
defer si.rwlock.unlock();
@@ -489,6 +490,7 @@ const DlIterContext = struct {
};
const std = @import("std");
+const Io = std.Io;
const Allocator = std.mem.Allocator;
const Dwarf = std.debug.Dwarf;
const Error = std.debug.SelfInfoError;