DWARF support
Ben Gamari
ben at smart-cactus.org
Fri Nov 19 00:09:19 UTC 2021
Artem Pelenitsyn <a.pelenitsyn at gmail.com> writes:
> Another question would be where do I read about Haskell-native stack
> unwinder. The issue and MR Ben referenced have descriptions, but the MR
> didn't touch anything inside `docs` which is a bit scary. Are there any
> good recourses to dive into it besides the source code in the MR?
>
Indeed the user's guide documentation surrounding info table provenance
should be updated to note this new capability.
There is a long Note in compiler/GHC/Driver/GenerateCgIPEStub.hs which
describes the implementation. As far as the interface is concerned, it's
quite straightforward:
* One can call GHC.Stack.CloneStack.cloneMyStack, which returns a
"frozen" copy of the calling context's stack
* One can then call GHC.Stack.CloneStack.decode to decode the stack into
a list of frames.
Did you have any particular questions?
Cheers,
- Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20211118/ca6ba159/attachment.sig>
More information about the ghc-devs
mailing list