Fix #1620: ModBreaks.modBreaks_array not initialised
After a :cd command and after setting some package flags, GHCi unloads all loaded modules by resetting the list of targets. This patch deletes eventually defined debugger breakpoints, before GHCi resets the target list. The common code is factored out into the new function clearAllTargets.
Showing
- ghc/GHCi/UI.hs 11 additions, 7 deletionsghc/GHCi/UI.hs
- testsuite/tests/ghci.debugger/scripts/T1620.script 18 additions, 0 deletionstestsuite/tests/ghci.debugger/scripts/T1620.script
- testsuite/tests/ghci.debugger/scripts/T1620.stdout 9 additions, 0 deletionstestsuite/tests/ghci.debugger/scripts/T1620.stdout
- testsuite/tests/ghci.debugger/scripts/T1620/T1620.hs 5 additions, 0 deletionstestsuite/tests/ghci.debugger/scripts/T1620/T1620.hs
- testsuite/tests/ghci.debugger/scripts/all.T 2 additions, 0 deletionstestsuite/tests/ghci.debugger/scripts/all.T
Loading
Please register or sign in to comment