patch applied (ghc-6.10/ghc): Fix to new executable allocation code (fixed print002 etc.)

Ian Lynagh igloo at earth.li
Wed Sep 24 12:24:24 EDT 2008


Mon Sep 22 14:09:15 PDT 2008  Simon Marlow <simonmar at microsoft.com>
  * Fix to new executable allocation code (fixed print002 etc.)
  The problem here is caused by the fact that info tables include a
  relative offset to the string naming the constructor.  Executable
  memory now resides at two places in the address space: one for writing
  and one for executing.  In the info tables generated by GHCi, we were
  calculating the offset relative to the writable instance, rather than
  the executable instance, which meant that the GHCi debugger couldn't
  find the names for constructors it found in the heap.

    M ./compiler/ghci/ByteCodeFFI.lhs -16 +1
    M ./compiler/ghci/ByteCodeItbls.lhs -5 +23

View patch online:
http://darcs.haskell.org/ghc-6.10/ghc/_darcs/patches/20080922210915-760e2-3f96cb2f47324bfac3205e85a1dc7eb10fa3b724.gz



More information about the Cvs-ghc mailing list