projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc0cf0
)
Untag closure pointers before trying to print them.
author
Ben.Lippmeier@anu.edu.au
<unknown>
Mon, 12 Jan 2009 05:34:21 +0000
(
05:34
+0000)
committer
Ben.Lippmeier@anu.edu.au
<unknown>
Mon, 12 Jan 2009 05:34:21 +0000
(
05:34
+0000)
In RTS tracing code, need to untag the pointer before trying
to load the info table in printClosure()
rts/Printer.c
patch
|
blob
|
history
diff --git
a/rts/Printer.c
b/rts/Printer.c
index
1ad6306
..
2fbe276
100644
(file)
--- 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 ) {