Commit 82d59cb0 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(pitx): Print iterator position.

Limit stack dump in case iterator is not initialized.
parent 9bdc2a5d
......@@ -164,6 +164,10 @@ define pitx
if ($it->current.pos.charpos != $it->current.pos.bytepos)
printf "[%d]", $it->current.pos.bytepos
end
printf " pos=%d", $it->position.charpos
if ($it->position.charpos != $it->position.bytepos)
printf "[%d]", $it->position.bytepos
end
printf " start=%d", $it->start.pos.charpos
if ($it->start.pos.charpos != $it->start.pos.bytepos)
printf "[%d]", $it->start.pos.bytepos
......@@ -218,7 +222,7 @@ define pitx
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)
while ($i < $it->sp && $i < 4)
set $e = $it->stack[$i]
printf "stack[%d]: ", $i
output $e->method
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment