]> granicus.if.org Git - python/commit
Patch #1003640: replace checkline() function parsing with new breakpoint logic:
authorJohannes Gijsbers <jlg@dds.nl>
Mon, 30 Aug 2004 13:29:44 +0000 (13:29 +0000)
committerJohannes Gijsbers <jlg@dds.nl>
Mon, 30 Aug 2004 13:29:44 +0000 (13:29 +0000)
commit4a9faa1ea077c0cf054d0d2ee1dc889b2972a63b
treecbb0f88cdc8d8acf36a554dd815b76963535de4a
parentcb7b3f30d6db6ab3cbd629d3970f85abee3e59ef
Patch #1003640: replace checkline() function parsing with new breakpoint logic:

1) When a breakpoint is set via a function name:
- the breakpoint gets the lineno of the def statement
- a new funcname attribute is attached to the breakpoint

2) bdb.effective() calls new function checkfuncname() to handle:
- def statement is executed: don't break.
- a first executable line of a function with a breakpoint on the lineno of the
def statement is reached: break.

This fixes bugs 976878, 926369 and 875404. Thanks Ilya Sandler.
Lib/bdb.py
Lib/pdb.py