aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/SelfInfo/ElfModule.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-09-19 11:55:50 +0100
committermlugg <mlugg@mlugg.co.uk>2025-09-30 13:44:55 +0100
commit9c1821d3bfadc5eddd4dff271a4920c03ee0ffea (patch)
treebd9c3ab253d769d5c3329c5fdf44c7ef65decfa1 /lib/std/debug/SelfInfo/ElfModule.zig
parent084e92879a1732374fac5f1a05a27f42b9306d22 (diff)
downloadzig-9c1821d3bfadc5eddd4dff271a4920c03ee0ffea.tar.gz
zig-9c1821d3bfadc5eddd4dff271a4920c03ee0ffea.zip
ElfModule: fix assertion failure
Diffstat (limited to 'lib/std/debug/SelfInfo/ElfModule.zig')
-rw-r--r--lib/std/debug/SelfInfo/ElfModule.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/SelfInfo/ElfModule.zig b/lib/std/debug/SelfInfo/ElfModule.zig
index fde61d8140..0812beaf7a 100644
--- a/lib/std/debug/SelfInfo/ElfModule.zig
+++ b/lib/std/debug/SelfInfo/ElfModule.zig
@@ -204,7 +204,7 @@ fn loadUnwindInfo(module: *const ElfModule, gpa: Allocator, di: *DebugInfo) Erro
} else unwinds: {
// There is no `.eh_frame_hdr` section. There may still be an `.eh_frame` or `.debug_frame`
// section, but we'll have to load the binary to get at it.
- try module.loadElf(gpa, di);
+ if (di.loaded_elf == null) try module.loadElf(gpa, di);
const opt_debug_frame = &di.loaded_elf.?.debug_frame;
const opt_eh_frame = &di.loaded_elf.?.eh_frame;
var i: usize = 0;