patch applied (ghc): Handle breakpoint jumps while splicing TH functions in ghci

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <20061216174244.GA5828__35634.8772337244$1166290992$gmane$org@cvs.haskell.org>
Sun Dec 10 14:24:24 PST 2006  Pepe Iborra <[email protected]>
  * Handle breakpoint jumps while splicing TH functions in ghci
  
  The dynamic linker has been modified so that it won't panic if one of the breakpointJump functions fails to resolve.
  Now, if the dynamic linker fails to find a HValue for a Name, before looking for a static symbol it will ask to
  
  Breakpoints.lookupBogusBreakpointVal :: Name -> Maybe HValue
  
  which returns an identity function for the Jump names or Nothing else.
  
  A TH function might contain a call to a breakpoint function. So if it is compiled to bytecodes, the breakpoints will be desugared to 'jumps'. Whenever this code is spliced, the linker will fail to find the jumpfunctions unless there is a default.
  

    M ./compiler/ghci/ByteCodeLink.lhs +3
    M ./compiler/main/Breakpoints.hs +22
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.