projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend the GHC API with breakpoints and breakpoint handlers
[ghc-hetmet.git]
/
compiler
/
main
/
DynFlags.hs
diff --git
a/compiler/main/DynFlags.hs
b/compiler/main/DynFlags.hs
index
736aff3
..
1799033
100644
(file)
--- a/
compiler/main/DynFlags.hs
+++ b/
compiler/main/DynFlags.hs
@@
-84,6
+84,9
@@
import Util ( split )
import Data.Char ( isDigit, isUpper )
import System.IO ( hPutStrLn, stderr )
import Data.Char ( isDigit, isUpper )
import System.IO ( hPutStrLn, stderr )
+import Breakpoints ( BkptHandler )
+import Module ( ModuleName )
+
-- -----------------------------------------------------------------------------
-- DynFlags
-- -----------------------------------------------------------------------------
-- DynFlags
@@
-303,6
+306,9
@@
data DynFlags = DynFlags {
-- message output
log_action :: Severity -> SrcSpan -> PprStyle -> Message -> IO ()
-- message output
log_action :: Severity -> SrcSpan -> PprStyle -> Message -> IO ()
+
+ -- breakpoint handling
+ ,bkptHandler :: Maybe (BkptHandler Module)
}
data HscTarget
}
data HscTarget
@@
-411,7
+417,8
@@
defaultDynFlags =
packageFlags = [],
pkgDatabase = Nothing,
pkgState = panic "no package state yet: call GHC.setSessionDynFlags",
packageFlags = [],
pkgDatabase = Nothing,
pkgState = panic "no package state yet: call GHC.setSessionDynFlags",
-
+
+ bkptHandler = Nothing,
flags = [
Opt_ReadUserPackageConf,
flags = [
Opt_ReadUserPackageConf,