This is Richie Hindle's patch
[ 643835 ] Set Next Statement for Python debuggers
with a few tweaks by me: adding an unsigned or two, mentioning that
not all jumps are allowed in the doc for pdb, adding a NEWS item and
a note to whatsnew, and AuCTeX doing something cosmetic to libpdb.tex.
diff --git a/Misc/NEWS b/Misc/NEWS
index 6292ba5..efd8048 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -84,6 +84,10 @@
Core and builtins
-----------------
+- A frame object's f_lineno attribute can now be written to from a
+ trace function to change which line will execute next. A command to
+ exploit this from pdb has been added. [SF patch #643835]
+
- The _codecs support module for codecs.py was turned into a builtin
module to assure that at least the builtin codecs are available
to the Python parser for source code decoding according to PEP 263.
@@ -118,8 +122,8 @@
- SET_LINENO is gone. co_lnotab is now consulted to determine when to
call the trace function. C code that accessed f_lineno should call
- PyCode_Addr2Line instead (f_lineno is still there, but not kept up
- to date).
+ PyCode_Addr2Line instead (f_lineno is still there, but only kept up
+ to date when there is a trace function set).
- There's a new warning category, FutureWarning. This is used to warn
about a number of situations where the value or sign of an integer
@@ -439,6 +443,9 @@
Library
-------
+- pdb has a new 'j(ump)' command to select the next line to be
+ executed.
+
- The distutils created windows installers now can run a
postinstallation script.