[project @ 2002-12-18 11:17:15 by simonmar]
authorsimonmar <unknown>
Wed, 18 Dec 2002 11:17:16 +0000 (11:17 +0000)
committersimonmar <unknown>
Wed, 18 Dec 2002 11:17:16 +0000 (11:17 +0000)
commit9ae23eaef2e0e2631202d9d1590db7ba40c45df2
tree7545c2ba60ebfe2d4d2228fc4eb509d5adf78373
parent7d4341839442f3cc0b597b8a7cd07691fbbaba6e
[project @ 2002-12-18 11:17:15 by simonmar]
Correctly describe the stack during a GHCi CCALL instruction to the
RTS.  The previous hack, temporarily truncating the stack to the
topmost valid stack frame, didn't work because stack-squeezing tends
to move the stack around before the call.

The right thing to do is correctly describe the chunk of ccall args
with an info table, which is what this change does.  We use a RET_DYN
info table with the number of non-ptrs from the CCALL instruction.
ghc/compiler/ghci/ByteCodeGen.lhs
ghc/rts/Interpreter.c