# std.debug: don't include dumpCurrentStackTrace frame · gitcafe/zig

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

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

Visibility: public

Requested revision: f7980487395b660d5c568ba57891ab371a27102d

Requested commit: f7980487395b660d5c568ba57891ab371a27102d

Commit: f7980487395b660d5c568ba57891ab371a27102d

Tree: 29838a7aa6289aa000772a9f025b99fb17900fe7

Author: mlugg

Committer: mlugg

## Message

```
std.debug: don't include dumpCurrentStackTrace frame

If it's not given, we should set `first_address` to the return address
of `dumpCurrentStackTrace` to avoid the call to `writeCurrentStackTrace`
appearing in the trace. However, we must only do that if no `context` is
given; if there's a context then we're starting the stack unwind
elsewhere.

```

## Parents

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

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