Commit 2eca0e42e5

Alex Rønne Petersen <alex@alexrp.com>
2025-10-16 13:50:39
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 parent 1f8a721
Changed files (1)
lib
lib/std/debug.zig
@@ -872,10 +872,14 @@ const StackIterator = union(enum) {
     };
 
     const fp_usability: FpUsability = switch (builtin.target.cpu.arch) {
+        .avr,
+        .csky,
         .mips,
         .mipsel,
         .mips64,
         .mips64el,
+        .msp430,
+        .xcore,
         => .useless,
         .hexagon,
         // The PowerPC ABIs don't actually strictly require a backchain pointer; they allow omitting