aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-05-28 02:26:38 -0400
committerJacob Young <15544577+jacobly0@users.noreply.github.com>2025-05-28 15:08:39 -0400
commit4f3b59f708058ce4e4b6a1cacd2a3dae6e1c7aae (patch)
tree306d70572d738f6f6082eb33d1e4d97062863d32 /lib/std/debug.zig
parente28b4027ee273ab72c4eb572adc5abc257230284 (diff)
downloadzig-4f3b59f708058ce4e4b6a1cacd2a3dae6e1c7aae.tar.gz
zig-4f3b59f708058ce4e4b6a1cacd2a3dae6e1c7aae.zip
debug: disable fp-based frame unwinding when fp is omitted
This has been causing non-deterministic timeouts on aarch64 CI.
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 7b55a05db5..527676566c 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -932,6 +932,8 @@ pub const StackIterator = struct {
}
}
+ if (builtin.omit_frame_pointer) return null;
+
const fp = if (comptime native_arch.isSPARC())
// On SPARC the offset is positive. (!)
math.add(usize, it.fp, fp_offset) catch return null