From 197ba117870bf9391b633fb1aae7dc4a22098fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 27 May 2026 00:26:35 +0200 Subject: [PATCH] std.debug.SelfInfo.Elf: update lists of supported architectures --- lib/std/debug/SelfInfo/Elf.zig | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/std/debug/SelfInfo/Elf.zig b/lib/std/debug/SelfInfo/Elf.zig index f8df905fd99c265b8cf9f80c316e1f3663577b2d..50274e5f7e7cf708caace875179ed7595771f492 100644 --- a/lib/std/debug/SelfInfo/Elf.zig +++ b/lib/std/debug/SelfInfo/Elf.zig @@ -108,15 +108,19 @@ pub const can_unwind: bool = s: { // Not supported yet: arm .haiku => &.{ .aarch64, - .m68k, .riscv64, .x86, .x86_64, }, - // Not supported yet: arm/armeb/thumb/thumbeb, xtensa/xtensaeb + .illumos => &.{ + .x86, + .x86_64, + }, + // Not supported yet: arm/armeb/thumb/thumbeb, hppa, hppa64, microblaze/microblazeel, xtensa/xtensaeb .linux => &.{ .aarch64, .aarch64_be, + .alpha, .arc, .csky, .loongarch32, @@ -146,19 +150,23 @@ pub const can_unwind: bool = s: { .freebsd => &.{ .aarch64, .riscv64, + .x86, .x86_64, }, - // Not supported yet: arm/armeb, mips64/mips64el + // Not supported yet: arm/armeb, hppa, mips64/mips64el, sh/sheb .netbsd => &.{ .aarch64, .aarch64_be, + .alpha, .m68k, .mips, .mipsel, + .riscv32, + .riscv64, .x86, .x86_64, }, - // Not supported yet: arm + // Not supported yet: arm, hppa, sh .openbsd => &.{ .aarch64, .m88k, @@ -169,11 +177,6 @@ pub const can_unwind: bool = s: { .x86_64, }, - .illumos => &.{ - .x86, - .x86_64, - }, - else => unreachable, }; for (archs) |a| { -- 2.54.0