From c1a30bd0d876330ce7a241fc297c66577ae7e6aa Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 9 Sep 2025 14:20:49 +0100 Subject: std: replace debug.Dwarf.ElfModule with debug.ElfFile This abstraction isn't really tied to DWARF at all! Really, we're just loading some information from an ELF file which is useful for debugging. That *includes* DWARF, but it also includes other information. For instance, the other change here: Now, if DWARF information is missing, `debug.SelfInfo.ElfModule` will name symbols by finding a matching symtab entry. We actually already do this on Mach-O, so it makes obvious sense to do the same on ELF! This change is what motivated the restructuring to begin with. The symtab work is derived from #22077. Co-authored-by: geemili --- lib/std/debug/Dwarf.zig | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/std/debug/Dwarf.zig') diff --git a/lib/std/debug/Dwarf.zig b/lib/std/debug/Dwarf.zig index 8b8dc7d732..ebfb15e6e2 100644 --- a/lib/std/debug/Dwarf.zig +++ b/lib/std/debug/Dwarf.zig @@ -30,7 +30,6 @@ pub const expression = @import("Dwarf/expression.zig"); pub const abi = @import("Dwarf/abi.zig"); pub const call_frame = @import("Dwarf/call_frame.zig"); pub const Unwind = @import("Dwarf/Unwind.zig"); -pub const ElfModule = @import("Dwarf/ElfModule.zig"); /// Useful to temporarily enable while working on this file. const debug_debug_mode = false; -- cgit v1.2.3