Add support for breaking by function name: ':break foo'
authorSimon Marlow <simonmar@microsoft.com>
Wed, 18 Apr 2007 14:22:17 +0000 (14:22 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 18 Apr 2007 14:22:17 +0000 (14:22 +0000)
commitb1160a12ea2f0b202ee3a50274f43222935e19cb
treeaee315db555eeb1ea8f15efe70898036cefcd8c6
parent14b1ce3eb8e055c955729c7095414686daa3e7f6
Add support for breaking by function name: ':break foo'
This is a bit hacky; it grabs the source location from the Name and
tries to set a breakpoint at that location, which in most cases
should be the breakpoint covering the whole definition.
compiler/ghci/InteractiveUI.hs