summaryrefslogtreecommitdiff
path: root/rts/Printer.c
diff options
context:
space:
mode:
authorBen.Lippmeier@anu.edu.au <unknown>2009-01-12 05:34:21 +0000
committerBen.Lippmeier@anu.edu.au <unknown>2009-01-12 05:34:21 +0000
commit42d87c155aaa9863c40dcdb28af1d23d31b35c9f (patch)
tree9df27555e8c2c0040b1c6b3339503b77c5f5f2f9 /rts/Printer.c
parent4cc0cf0ce1a313b7cc4999dda36cd7efb5fe0435 (diff)
downloadhaskell-42d87c155aaa9863c40dcdb28af1d23d31b35c9f.tar.gz
Untag closure pointers before trying to print them.
In RTS tracing code, need to untag the pointer before trying to load the info table in printClosure()
Diffstat (limited to 'rts/Printer.c')
-rw-r--r--rts/Printer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/Printer.c b/rts/Printer.c
index 1ad63063f8..2fbe2765a6 100644
--- a/rts/Printer.c
+++ b/rts/Printer.c
@@ -121,8 +121,9 @@ printThunkObject( StgThunk *obj, char* tag )
void
printClosure( StgClosure *obj )
{
+ obj = UNTAG_CLOSURE(obj);
+
StgInfoTable *info;
-
info = get_itbl(obj);
switch ( info->type ) {