Mailing List Archive

python/dist/src/Python ceval.c,2.337,2.338
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv1097/Python

Modified Files:
ceval.c
Log Message:
One last tweak to the tracing machinery: this actually computes what I intended
all along. Before instr_lb tended to be too high.

I don't think this actually makes any difference, given what the compiler
produces, but it makes me a bit happier.



Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.337
retrieving revision 2.338
diff -C2 -d -r2.337 -r2.338
*** ceval.c 2 Oct 2002 13:13:46 -0000 2.337
--- ceval.c 3 Oct 2002 09:53:11 -0000 2.338
***************
*** 2967,2973 ****
--- 2967,2975 ----
break;
addr += *p++;
+ if (*p) *instr_lb = addr;
line += *p++;
--size;
}
+
if (addr == frame->f_lasti) {
frame->f_lineno = line;
***************
*** 2975,2979 ****
PyTrace_LINE, Py_None);
}
! *instr_lb = addr;
if (size > 0) {
while (--size >= 0) {
--- 2977,2981 ----
PyTrace_LINE, Py_None);
}
!
if (size > 0) {
while (--size >= 0) {