Various cleanups and improvements to the breakpoint support
authorSimon Marlow <simonmar@microsoft.com>
Wed, 18 Apr 2007 11:47:00 +0000 (11:47 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 18 Apr 2007 11:47:00 +0000 (11:47 +0000)
commit38e7ac3ffa32d75c1922e7247a910e06d9957116
treedeb72eb3adc4dc2252c4784932aa6e5da7924ace
parent71f74505bed49cf595bc9df3d1ba050448793c92
Various cleanups and improvements to the breakpoint support

  - move parts of the debugger implementation below the GHC API where
    they belong.  There is still more in Debugger that violates the
    layering, hopefully I'll get to that later.

  - instead of returning an IO action from runStmt for resuming,
    return a ResumeHandle that is passed to GHC.resume.

  - breakpoints now return [Name] which is displayed in the same
    way as when a binding statement is executed.

  - :load, :add, :reload now clear the active breakpoints and context

  - :break gives a sensible error when used on a non-interpreted module

  - export breakpoint-related types from GHC

  - remove a bunch of layer-violating imports from InteractiveUI

  - remove some more vestiges of the old breakpoint code (topLevel in
    the GHCi state).

  - remove TickTree and use a simple array instead, cached per module
compiler/basicTypes/SrcLoc.lhs
compiler/deSugar/Coverage.lhs
compiler/ghci/ByteCodeGen.lhs
compiler/ghci/Debugger.hs
compiler/ghci/GhciMonad.hs
compiler/ghci/InteractiveUI.hs
compiler/ghci/TickTree.hs [deleted file]
compiler/main/GHC.hs
compiler/main/HscTypes.lhs