diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 7b55a05db59c1256a01c8fa07b4c88b8a35f0516..527676566c69b6026de6661a54cbd85cf0322da2 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