Just in case someone else needed this, here you go: GDB/MI lets programs drive GDB. It can be used, for example, by GDB frontends. This module wraps attaching GDB to a process and parsing the (surprisingly complicated) GDB/MI output. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hgdbmi