mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 01:23:17 +00:00
std.debug.SelfInfo.Elf: disable unwinding on mips n32 and x86 x32
The DWARF code can't handle these yet. ref https://github.com/ziglang/zig/issues/25447
This commit is contained in:
parent
906ce2ad7c
commit
30f5258fe6
@ -81,6 +81,16 @@ pub fn getModuleName(si: *SelfInfo, gpa: Allocator, address: usize) Error![]cons
|
||||
}
|
||||
|
||||
pub const can_unwind: bool = s: {
|
||||
// The DWARF code can't deal with ILP32 ABIs yet: https://github.com/ziglang/zig/issues/25447
|
||||
switch (builtin.target.abi) {
|
||||
.gnuabin32,
|
||||
.muslabin32,
|
||||
.gnux32,
|
||||
.muslx32,
|
||||
=> break :s false,
|
||||
else => {},
|
||||
}
|
||||
|
||||
// Notably, we are yet to support unwinding on ARM. There, unwinding is not done through
|
||||
// `.eh_frame`, but instead with the `.ARM.exidx` section, which has a different format.
|
||||
const archs: []const std.Target.Cpu.Arch = switch (builtin.target.os.tag) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user