patch applied (ghc): Retrieving the datacon of an arbitrary closure

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <20061216174225.GA5739__18801.4382766143$1166290957$gmane$org@cvs.haskell.org>
Sun Dec 10 03:29:44 PST 2006  Pepe Iborra <[email protected]>
  * Retrieving the datacon of an arbitrary closure
  
  This patch extends the RTS linker and the dynamic linker so that it is possible to find out the datacon of a closure in heap at runtime:
  - The RTS linker now carries a hashtable 'Address->Symbol' for data constructors
  - The Persistent Linker State in the dynamic linker is extended in a similar way.
  
  Finally, these two sources of information are consulted by:
  
  > Linker.recoverDataCon :: a -> TcM Name
  

    M! ./compiler/ghci/ByteCodeItbls.lhs -1 +1
    M ./compiler/ghci/ByteCodeLink.lhs +1
    M ./compiler/ghci/Linker.lhs -12 +96
    M ./compiler/ghci/ObjLink.lhs -1 +16
    M ./compiler/prelude/TysWiredIn.lhs +2
    M ./includes/Linker.h +3
    M ./rts/Linker.c -1 +65
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.