diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-09-26 12:00:41 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-09-30 13:44:56 +0100 |
| commit | 8950831d3c4af4dd169e0a404e25e8aa9b045caa (patch) | |
| tree | 50d8df70cffdd5d42b5bd73737356a44b1936501 /lib/std/debug/SelfInfo/ElfModule.zig | |
| parent | 156cd8f678ebdcccc48382d093a3ef7e45c85a45 (diff) | |
| download | zig-8950831d3c4af4dd169e0a404e25e8aa9b045caa.tar.gz zig-8950831d3c4af4dd169e0a404e25e8aa9b045caa.zip | |
Dwarf.Unwind: handle macOS deviation from standard
Apparently the `__eh_frame` in Mach-O binaries doesn't include the
terminator entry, but in all other respects it acts like `.eh_frame`
rather than `.debug_frame`. I have no idea.
Diffstat (limited to 'lib/std/debug/SelfInfo/ElfModule.zig')
| -rw-r--r-- | lib/std/debug/SelfInfo/ElfModule.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/SelfInfo/ElfModule.zig b/lib/std/debug/SelfInfo/ElfModule.zig index eead810a86..7ce24e2e2a 100644 --- a/lib/std/debug/SelfInfo/ElfModule.zig +++ b/lib/std/debug/SelfInfo/ElfModule.zig @@ -228,7 +228,7 @@ pub fn getSymbolAtAddress(module: *const ElfModule, gpa: Allocator, di: *DebugIn }; } fn prepareUnwindLookup(unwind: *Dwarf.Unwind, gpa: Allocator) Error!void { - unwind.prepare(gpa, @sizeOf(usize), native_endian, true) catch |err| switch (err) { + unwind.prepare(gpa, @sizeOf(usize), native_endian, true, false) catch |err| switch (err) { error.ReadFailed => unreachable, // it's all fixed buffers error.InvalidDebugInfo, error.MissingDebugInfo, |
