From 55a7affea41a4a1f4e117d7ee55c1c0e8b869203 Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 2 Sep 2025 14:44:15 +0100 Subject: me when i did a thing --- lib/std/debug/Dwarf.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/std/debug/Dwarf.zig') diff --git a/lib/std/debug/Dwarf.zig b/lib/std/debug/Dwarf.zig index 395b3951da..bb4bee2fbf 100644 --- a/lib/std/debug/Dwarf.zig +++ b/lib/std/debug/Dwarf.zig @@ -1780,13 +1780,13 @@ pub const ElfModule = struct { pub fn getSymbol(di: *Dwarf, allocator: Allocator, endian: Endian, address: u64) !std.debug.Symbol { const compile_unit = di.findCompileUnit(endian, address) catch |err| switch (err) { - error.MissingDebugInfo, error.InvalidDebugInfo => return .{}, + error.MissingDebugInfo, error.InvalidDebugInfo => return .{ .name = null, .compile_unit_name = null, .source_location = null }, else => return err, }; return .{ - .name = di.getSymbolName(address) orelse "???", + .name = di.getSymbolName(address), .compile_unit_name = compile_unit.die.getAttrString(di, endian, std.dwarf.AT.name, di.section(.debug_str), compile_unit) catch |err| switch (err) { - error.MissingDebugInfo, error.InvalidDebugInfo => "???", + error.MissingDebugInfo, error.InvalidDebugInfo => null, }, .source_location = di.getLineNumberInfo(allocator, endian, compile_unit, address) catch |err| switch (err) { error.MissingDebugInfo, error.InvalidDebugInfo => null, -- cgit v1.2.3