changeset 71433:562b7f0c2fe8

(pitx): Dump iterator stack.
author Kim F. Storm <storm@cua.dk>
date Fri, 23 Jun 2006 12:19:45 +0000
parents 04d71fb0c6b3
children 91d47fb65033
files src/.gdbinit
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/.gdbinit	Fri Jun 23 12:19:34 2006 +0000
+++ b/src/.gdbinit	Fri Jun 23 12:19:45 2006 +0000
@@ -217,6 +217,15 @@
   printf " a+d=%d+%d=%d", $it->ascent, $it->descent, $it->ascent+$it->descent
   printf " max=%d+%d=%d", $it->max_ascent, $it->max_descent, $it->max_ascent+$it->max_descent
   printf "\n"
+  set $i = 0
+  while ($i < $it->sp)
+    set $e = $it->stack[$i]
+    printf "stack[%d]: ", $i
+    output $e->method
+    printf "[%d]", $e->position.charpos
+    printf "\n"
+    set $i = $i + 1
+  end
 end
 document pitx
 Pretty print a display iterator.