Haskell implementation of a GDB Machine Interface client.
This is fork of hgdbmi v0.2 which is fork of hgdbmi v0.1.
- GDM Machine Interface
- libgdbmi C/C++ implementation for reference
- Debugger Machine Interface (DMI) Working Group
import Gdb
main :: IO ()
main = runGDB example >>= print
example
:: MonadGDB m
=> m String
example = do
file "example"
breakpoint' (file_function_location "example.c" "print")
_ <- run
onBreak $ \_stopped -> do
eval "i"