authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-16 13:50:39+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-18 00:36:52+02:00
log2eca0e42e59fafae839b507148e8a3679d172079
treed4faef4edaa3569ff19e4ce2f8bb25e3a70e98ca
parent1f8a72175b5352e77b41ed4d165acccad08ffb16
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.debug: FP-based unwinding is impossible on avr, csky, msp430, and xcore

The ABIs do not define a frame pointer register, nor do they define a guaranteed and fixed area on the stack where one might find saved registers such as a frame pointer or return address.

1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/debug.zig+4
...@@ -872,10 +872,14 @@ const StackIterator = union(enum) {...@@ -872,10 +872,14 @@ const StackIterator = union(enum) {
872 };872 };
873873
874 const fp_usability: FpUsability = switch (builtin.target.cpu.arch) {874 const fp_usability: FpUsability = switch (builtin.target.cpu.arch) {
875 .avr,
876 .csky,
875 .mips,877 .mips,
876 .mipsel,878 .mipsel,
877 .mips64,879 .mips64,
878 .mips64el,880 .mips64el,
881 .msp430,
882 .xcore,
879 => .useless,883 => .useless,
880 .hexagon,884 .hexagon,
881 // The PowerPC ABIs don't actually strictly require a backchain pointer; they allow omitting885 // The PowerPC ABIs don't actually strictly require a backchain pointer; they allow omitting