# std.debug: fix incorrect FP unwinding on RISC-V and SPARC · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/80f6b8c4b3a6dcb17dcd9bb3ecaf528b3da9c54e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 80f6b8c4b3a6dcb17dcd9bb3ecaf528b3da9c54e

Requested commit: 80f6b8c4b3a6dcb17dcd9bb3ecaf528b3da9c54e

Commit: 80f6b8c4b3a6dcb17dcd9bb3ecaf528b3da9c54e

Tree: a3d7e036a042b687b9995c3054f467673c9c0b68

Author: mlugg

Committer: Matthew Lugg

## Message

```
std.debug: fix incorrect FP unwinding on RISC-V and SPARC

I broke this when porting this logic for the `std.debug` rework in
https://github.com/ziglang/zig/pull/25227. The offset that I copied was
actually being treated as relative to the address of the *saved* base
pointer. I think it makes more sense to do what I did and just treat all
offsets as relative to this frame's base.

```

## Parents

- [c383cd50d5eb3b677493ab0058d860a9177a2679](https://git.cafe/gitcafe/zig/commit/c383cd50d5eb3b677493ab0058d860a9177a2679?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/80f6b8c4b3a6dcb17dcd9bb3ecaf528b3da9c54e?format=markdown)
