This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, qpatata
Date 2010-09-22.22:11:03
SpamBayes Score 1.7916083e-08
Marked as misclassified No
Message-id <1285193465.39.0.707588770798.issue9919@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-09-22 22:11:05amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, qpatata
2010-09-22 22:11:05amaury.forgeotdarcsetmessageid: <1285193465.39.0.707588770798.issue9919@psf.upfronthosting.co.za>
2010-09-22 22:11:04amaury.forgeotdarclinkissue9919 messages
2010-09-22 22:11:03amaury.forgeotdarccreate