Commit 29848f05 authored by Georg Brandl's avatar Georg Brandl

#9919: fix off-by-one error in lineno command in Misc/gdbinit; also add newline to its output.

parent a9afb687
......@@ -61,11 +61,12 @@ define lineno
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
......
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