[Python-checkins] r85768 - python/branches/py3k/Misc/gdbinit

georg.brandl python-checkins at python.org
Thu Oct 21 14:59:15 CEST 2010


Author: georg.brandl
Date: Thu Oct 21 14:59:14 2010
New Revision: 85768
Log:
#9919: fix off-by-one error in lineno command in Misc/gdbinit; also add newline to its output.
Modified:
 python/branches/py3k/Misc/gdbinit
Modified: python/branches/py3k/Misc/gdbinit
==============================================================================
--- python/branches/py3k/Misc/gdbinit	(original)
+++ python/branches/py3k/Misc/gdbinit	Thu Oct 21 14:59:14 2010
@@ -61,11 +61,12 @@
 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
+ printf "%d\n", $__li
 end
 
 # print the current frame - verbose


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /