[kaffe] CVS kaffe (stack): Fix gcstat macro in gdbinit.
Kaffe CVS
cvs-commits at kaffe.org
Wed Mar 10 14:54:02 PST 2004
PatchSet 4504
Date: 2004/03/10 22:39:58
Author: stack
Branch: HEAD
Tag: (none)
Log:
Fix gcstat macro in gdbinit.
Members:
ChangeLog:1.2083->1.2084
developers/gdbinit:1.14->1.15
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2083 kaffe/ChangeLog:1.2084
--- kaffe/ChangeLog:1.2083 Wed Mar 10 17:48:01 2004
+++ kaffe/ChangeLog Wed Mar 10 22:39:58 2004
@@ -1,3 +1,8 @@
+2004-03-10 Timothy S. Stack <stack at cs.utah.edu>
+
+ * developers/gdbinit:
+ Update the "gcstate" macro.
+
2004-03-10 Casey Marshall <rsdio at metastatic.org>
* kaffe/kaffevm/jit3/icode.c:
Index: kaffe/developers/gdbinit
diff -u kaffe/developers/gdbinit:1.14 kaffe/developers/gdbinit:1.15
--- kaffe/developers/gdbinit:1.14 Mon Mar 8 21:21:01 2004
+++ kaffe/developers/gdbinit Wed Mar 10 22:40:01 2004
@@ -233,7 +233,7 @@
define gcstate
set $ptr = (uint8*)($arg0)
- set $gcBlock = ((gc_block*)((uintp)($arg0) & -gc_pgsize))
+ set $gcBlock = &(((gc_block *)gc_block_base)[(((uintp) ($ptr)) - gc_heap_base)/gc_pgsize])
if $gcBlock->size <= 0
printf "WARNING: block size is <= 0 (%d)\n", $gcBlock->size
More information about the kaffe
mailing list