aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-10-16 13:50:39 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-10-18 00:36:52 +0200
commit2eca0e42e59fafae839b507148e8a3679d172079 (patch)
treed4faef4edaa3569ff19e4ce2f8bb25e3a70e98ca /lib/std/debug.zig
parent1f8a72175b5352e77b41ed4d165acccad08ffb16 (diff)
downloadzig-2eca0e42e59fafae839b507148e8a3679d172079.tar.gz
zig-2eca0e42e59fafae839b507148e8a3679d172079.zip
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.
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index d9eb0cd907..377028236e 100644
--- a/lib/std/debug.zig
+++ b/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