Skip to content

Commit

Permalink
python#9919: fix off-by-one error in lineno command in Misc/gdbinit; …
Browse files Browse the repository at this point in the history
…also add newline to its output.
  • Loading branch information
birkenfeld committed Oct 21, 2010
1 parent a9afb68 commit 29848f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Misc/gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29848f0

Please sign in to comment.