Staging
v0.5.1
https://github.com/python/cpython
Revision 4a9faa1ea077c0cf054d0d2ee1dc889b2972a63b authored by Johannes Gijsbers on 30 August 2004, 13:29:44 UTC, committed by Johannes Gijsbers on 30 August 2004, 13:29:44 UTC
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.
1 parent cb7b3f3
History
Tip revision: 4a9faa1ea077c0cf054d0d2ee1dc889b2972a63b authored by Johannes Gijsbers on 30 August 2004, 13:29:44 UTC
Patch #1003640: replace checkline() function parsing with new breakpoint logic:
Tip revision: 4a9faa1
File Mode Size
.cvsignore -rw-r--r-- 22 bytes
acceler.c -rw-r--r-- 2.8 KB
bitset.c -rw-r--r-- 949 bytes
firstsets.c -rw-r--r-- 2.1 KB
grammar.c -rw-r--r-- 5.1 KB
grammar.mak -rw-r--r-- 1.3 KB
grammar1.c -rw-r--r-- 1.0 KB
intrcheck.c -rw-r--r-- 2.7 KB
listnode.c -rw-r--r-- 983 bytes
metagrammar.c -rw-r--r-- 2.2 KB
myreadline.c -rw-r--r-- 5.3 KB
node.c -rw-r--r-- 3.5 KB
parser.c -rw-r--r-- 8.9 KB
parser.h -rw-r--r-- 1000 bytes
parsetok.c -rw-r--r-- 5.0 KB
pgen.c -rw-r--r-- 14.2 KB
pgenmain.c -rw-r--r-- 3.2 KB
printgrammar.c -rw-r--r-- 2.4 KB
tokenizer.c -rw-r--r-- 31.5 KB
tokenizer.h -rw-r--r-- 2.3 KB
tokenizer_pgen.c -rw-r--r-- 36 bytes

back to top