mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
ElfModule: fix assertion failure
This commit is contained in:
parent
084e92879a
commit
9c1821d3bf
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ fn loadUnwindInfo(module: *const ElfModule, gpa: Allocator, di: *DebugInfo) Erro
|
||||||
} else unwinds: {
|
} else unwinds: {
|
||||||
// There is no `.eh_frame_hdr` section. There may still be an `.eh_frame` or `.debug_frame`
|
// 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.
|
// 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_debug_frame = &di.loaded_elf.?.debug_frame;
|
||||||
const opt_eh_frame = &di.loaded_elf.?.eh_frame;
|
const opt_eh_frame = &di.loaded_elf.?.eh_frame;
|
||||||
var i: usize = 0;
|
var i: usize = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue