diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-03 20:08:06 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-04 03:03:54 +0200 |
| commit | d8268fac9829965ac0ffff72fb2f96a36d04d996 (patch) | |
| tree | ab609aaa33d818157d7c390ec318345800e57a39 /lib/std/debug.zig | |
| parent | 07c3f9ef8e0a5a557dce70322334b0d1b49fe154 (diff) | |
| download | zig-d8268fac9829965ac0ffff72fb2f96a36d04d996.tar.gz zig-d8268fac9829965ac0ffff72fb2f96a36d04d996.zip | |
std.debug: fix FP-based unwinding on powerpc64
This just needs to do the same thing as powerpc64le. Note that the saved LR is
at the same position in both ELF v1 and v2.
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 6d705f3c86..4203027863 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -951,7 +951,7 @@ const StackIterator = union(enum) { /// Offset of the saved return address wrt the frame pointer. const ra_offset = off: { - if (native_arch == .powerpc64le) break :off 2 * @sizeOf(usize); + if (native_arch.isPowerPC64()) break :off 2 * @sizeOf(usize); // On s390x, r14 is the link register and we need to grab it from its customary slot in the // register save area (ELF ABI s390x Supplement §1.2.2.2). if (native_arch == .s390x) break :off 14 * @sizeOf(usize); |
