projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Big tidy-up of deriving code
[ghc-hetmet.git]
/
compiler
/
ghci
/
ByteCodeLink.lhs
diff --git
a/compiler/ghci/ByteCodeLink.lhs
b/compiler/ghci/ByteCodeLink.lhs
index
3305daa
..
c58ae87
100644
(file)
--- a/
compiler/ghci/ByteCodeLink.lhs
+++ b/
compiler/ghci/ByteCodeLink.lhs
@@
-10,6
+10,7
@@
module ByteCodeLink (
HValue,
ClosureEnv, emptyClosureEnv, extendClosureEnv,
linkBCO, lookupStaticPtr
HValue,
ClosureEnv, emptyClosureEnv, extendClosureEnv,
linkBCO, lookupStaticPtr
+ ,lookupIE
) where
#include "HsVersions.h"
) where
#include "HsVersions.h"
@@
-26,6
+27,7
@@
import Module
import PackageConfig
import FastString
import Panic
import PackageConfig
import FastString
import Panic
+import Breakpoints
#ifdef DEBUG
import Outputable
#ifdef DEBUG
import Outputable
@@
-210,6
+212,8
@@
lookupName :: ClosureEnv -> Name -> IO HValue
lookupName ce nm
= case lookupNameEnv ce nm of
Just (_,aa) -> return aa
lookupName ce nm
= case lookupNameEnv ce nm of
Just (_,aa) -> return aa
+ Nothing | Just bk <- lookupBogusBreakpointVal nm
+ -> return bk
Nothing
-> ASSERT2(isExternalName nm, ppr nm)
do let sym_to_find = nameToCLabel nm "closure"
Nothing
-> ASSERT2(isExternalName nm, ppr nm)
do let sym_to_find = nameToCLabel nm "closure"