Support for adding custom commands to an individual breakpoint
authorSimon Marlow <simonmar@microsoft.com>
Fri, 11 May 2007 12:49:29 +0000 (12:49 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 11 May 2007 12:49:29 +0000 (12:49 +0000)
commitae2b9180cbb5b48af77502c65366bec7b788482b
treecb8554712a1bb10b85364a9cc38f4c1ef32071d9
parent0fdd72445b065a9b648501900dfd986fc23a10c7
Support for adding custom commands to an individual breakpoint

  :set stop N <cmd>

runs <cmd> when breakpoint N is hit.  Note that the command to run
might be a macro (defined with :def), and the macro can invoke
:continue, so it is now possible to do clever things like conditional
breakpoints, or ignoring the next K hits of a breakpoint.
compiler/ghci/GhciMonad.hs
compiler/ghci/InteractiveUI.hs