# debug: replace RtlCaptureStackBackTrace \(which was spuriously failing\) with a new implementation which uses RtlVirtualUnwind instead \(\#12740\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 09ff03a57a9f2144f0d3e9b0173bac7035d3629b

Requested commit: 09ff03a57a9f2144f0d3e9b0173bac7035d3629b

Commit: 09ff03a57a9f2144f0d3e9b0173bac7035d3629b

Tree: c498aa8f839458e5558f8344893579d16a5954ae

Author: Casey Banner

Committer: GitHub

## Message

```
debug: replace RtlCaptureStackBackTrace (which was spuriously failing) with a new implementation which uses RtlVirtualUnwind instead (#12740)

windows: add RtlCaptureContext, RtlLookupFunctionEntry, RtlVirtualUnwind and supporting types
windows: fix alignment of CONTEXT structs to match winnt.h as required by RtlCaptureContext (fxsave instr)
windows aarch64: fix __chkstk being defined twice if libc is not linked on msvc

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
```

## Parents

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

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