Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: OK, I reproduce the issue. It is now clear to me as well that r39492 was slightly wrong: the replacement of "break" should avoid to execute the end of the loop.
The following patch fixes the issue for me, can someone with better gdb knowledge check it? Index: Misc/gdbinit =================================================================== --- Misc/gdbinit (revision 84966) +++ Misc/gdbinit (working copy) @@ -59,9 +59,10 @@ set $__p = $__p + 1 if ($__ad > $__lasti) set $__continue = 0 + else + set $__li = $__li + *$__p + set $__p = $__p + 1 end - set $__li = $__li + *$__p - set $__p = $__p + 1 end printf "%d", $__li end ---------- stage: -> patch review _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9919> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com