Skip to content

Implement RTS's ghc-debug API

Implement functions that are needed by ghc-debug. These are functions to pause and unpause the RTS and to traverse the heap.

Pausing is needed because otherwise the heap might change during traversal and show an inconsistent state.

(Un-) pausing functions:

  • rts_pause()
  • rts_unpause()
  • rts_isPaused()

Traversal functions:

  • rts_listThreads()
  • rts_listMiscRoots()

This ticket is created as a future reference. (We always add ticket numbers to commits.)

There already is a merge request: !1435 (closed)

Edited by David Eichmann
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information