diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-09-05 19:43:08 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-09-30 13:44:51 +0100 |
| commit | 5709369d059ba107accaadb4b977281e2ba843ed (patch) | |
| tree | 0141fb2b3085b6ec8366544a7b6781b39e50ec2a /lib/std/debug/Dwarf.zig | |
| parent | d4f710791f88c29e08659241e7976c08fe05ba49 (diff) | |
| download | zig-5709369d059ba107accaadb4b977281e2ba843ed.tar.gz zig-5709369d059ba107accaadb4b977281e2ba843ed.zip | |
std.debug: improve the APIs and stuff
Diffstat (limited to 'lib/std/debug/Dwarf.zig')
| -rw-r--r-- | lib/std/debug/Dwarf.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/Dwarf.zig b/lib/std/debug/Dwarf.zig index 8efba51bee..e9ed9077af 100644 --- a/lib/std/debug/Dwarf.zig +++ b/lib/std/debug/Dwarf.zig @@ -1449,7 +1449,7 @@ fn getStringGeneric(opt_str: ?[]const u8, offset: u64) ![:0]const u8 { 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 .{ .name = null, .compile_unit_name = null, .source_location = null }, + error.MissingDebugInfo, error.InvalidDebugInfo => return .unknown, else => return err, }; return .{ |
