]> granicus.if.org Git - python/commit
backport of r60575 (issue #1750076): Debugger did not step on every iteration of...
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 4 Feb 2008 22:34:57 +0000 (22:34 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 4 Feb 2008 22:34:57 +0000 (22:34 +0000)
commit316f8a8d3c965d2e1809b1b90677733478184c89
tree53786f52b14bbd90823bded4f16ebb6202942c85
parentd66e94d0e6681345c6b203e7e6bd56e5a82ceb82
backport of r60575 (issue #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