Ability to get stack traces from Haskell code
With the merge of D169 and D396 (included in GHC 7.10.1, see #3693 (closed) for details) GHC now has the ability to produce DWARF debugging information in compiled binaries.
It would be nice if Haskell programs could request stack backtraces from the RTS. Tarrasch has some work in this direction in D963 however there are a number of questions that remain outstanding,
- do we want to rely on an external library for parsing DWARF information? If so, how do we address portability concerns?
- What should the Haskell-land interfaces look like? Writing down some concrete use-cases would help here.