]> granicus.if.org Git - python/commit
#1750076: Debugger did not step on every iteration of a while statement.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 4 Feb 2008 21:45:05 +0000 (21:45 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 4 Feb 2008 21:45:05 +0000 (21:45 +0000)
commit6fd03bb6070586a3b069c90cf3892ba7573d6bf5
treec6ac731d3091f28f849d504bb135a621207b03b8
parent578a8caf43ae0d52b37444754adf6f4c404a123c
#1750076: Debugger did not step on every iteration of a while statement.

The mapping between bytecode offsets and source lines (lnotab) did not contain
an entry for the beginning of the loop.

Now it does, and the lnotab can be a bit larger:
in particular, several statements on the same line generate several entries.
However, this does not bother the settrace function, which will trigger only
one 'line' event.

The lnotab seems to be exactly the same as with python2.4.
Lib/test/test_trace.py
Misc/NEWS
Python/compile.c