Message117158
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 |
|
Date |
User |
Action |
Args |
2010-09-22 22:11:05 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, qpatata |
2010-09-22 22:11:05 | amaury.forgeotdarc | set | messageid: <1285193465.39.0.707588770798.issue9919@psf.upfronthosting.co.za> |
2010-09-22 22:11:04 | amaury.forgeotdarc | link | issue9919 messages |
2010-09-22 22:11:03 | amaury.forgeotdarc | create | |
|