X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghci%2FInteractiveUI.hs;h=b5af439d640173a3ae49fc437883ac9ee10c059a;hb=a6156829d4e671c5385769ccc7675e644591525d;hp=a295245a8b469022389301eff5aadca72a90ecd1;hpb=cdfbaf4f6d2bafdd7e661eb44c3a4c99cae603a0;p=ghc-hetmet.git diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index a295245..b5af439 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -215,7 +215,7 @@ helpText = "\n" ++ " Options for ':breakpoint':\n" ++ " list list the current breakpoints\n" ++ - " add Module line [col] add a new breakpoint\n" ++ + " add [Module] line [col] add a new breakpoint\n" ++ " del (breakpoint# | Module line [col]) delete a breakpoint\n" ++ " continue continue execution\n" ++ " stop Stop a computation and return to the top level\n" ++ @@ -779,7 +779,10 @@ afterLoad ok session = do graph <- io (GHC.getModuleGraph session) graph' <- filterM (io . GHC.isLoaded session . GHC.ms_mod_name) graph setContextAfterLoad session graph' - refreshBkptTable graph' + do + bt <- getBkptTable + bt' <- io$ refreshBkptTable session bt graph' + setBkptTable bt' modulesLoadedMsg ok (map GHC.ms_mod_name graph') setContextAfterLoad session [] = do @@ -1355,7 +1358,7 @@ wrapCompleter fun w = do getCommonPrefix :: [String] -> String getCommonPrefix [] = "" getCommonPrefix (s:ss) = foldl common s ss - where common s "" = s + where common s "" = "" common "" s = "" common (c:cs) (d:ds) | c == d = c : common cs ds @@ -1402,10 +1405,8 @@ handler (DynException dyn) = do at_topLevel <- isTopLevel if at_topLevel then return True else throwDyn StopParentSession - | Just (ChildSessionStopped msg) <- fromDynamic dyn - -- Reload modules and display some message - = do ASSERTM (isTopLevel) - io(putStrLn msg) >> return False + | Just (ChildSessionStopped msg) <- fromDynamic dyn + = io(putStrLn msg) >> return False handler exception = do flushInterpBuffers