# std.debug: go back to storing return addresses instead of call addresses · gitcafe/zig

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

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

Visibility: public

Requested revision: 2ab650b4817cbb22244c17de828e82cbb0ccf15e

Requested commit: 2ab650b4817cbb22244c17de828e82cbb0ccf15e

Commit: 2ab650b4817cbb22244c17de828e82cbb0ccf15e

Tree: deebb1090f939f52a363de30179f2136f8819588

Author: mlugg

Committer: mlugg

## Message

```
std.debug: go back to storing return addresses instead of call addresses

...and just deal with signal handlers by adding 1 to create a fake
"return address". The system I tried out where the addresses returned by
`StackIterator` were pre-subtracted didn't play nicely with error
traces, which in hindsight, makes perfect sense. This definition also
removes some ugly off-by-one issues in matching `first_address`, so I do
think this is a better approach.

```

## Parents

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

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