| ... | @@ -204,7 +204,7 @@ fn loadUnwindInfo(module: *const ElfModule, gpa: Allocator, di: *DebugInfo) Erro | ... | @@ -204,7 +204,7 @@ fn loadUnwindInfo(module: *const ElfModule, gpa: Allocator, di: *DebugInfo) Erro |
| 204 | } else unwinds: { | 204 | } else unwinds: { |
| 205 | // There is no `.eh_frame_hdr` section. There may still be an `.eh_frame` or `.debug_frame` | 205 | // There is no `.eh_frame_hdr` section. There may still be an `.eh_frame` or `.debug_frame` |
| 206 | // section, but we'll have to load the binary to get at it. | 206 | // section, but we'll have to load the binary to get at it. |
| 207 | try module.loadElf(gpa, di); | 207 | if (di.loaded_elf == null) try module.loadElf(gpa, di); |
| 208 | const opt_debug_frame = &di.loaded_elf.?.debug_frame; | 208 | const opt_debug_frame = &di.loaded_elf.?.debug_frame; |
| 209 | const opt_eh_frame = &di.loaded_elf.?.eh_frame; | 209 | const opt_eh_frame = &di.loaded_elf.?.eh_frame; |
| 210 | var i: usize = 0; | 210 | var i: usize = 0; |