[issue17277] incorrect line numbers in backtrace after removing a trace function
Xavier de Gaye
report at bugs.python.org
Sun Feb 24 12:34:51 CET 2013
Xavier de Gaye added the comment:
The proposed patch fixes the backtrace line numbers issue, but it does not fix
PyFrame_GetLineNumber() which is the recommended way to get the frame line
number.
As mentionned in the original message, testing for f->f_trace to implement the
f_lineno getter is not correct. The f_lineno setter is also wrong in allowing to
modify f_lineno when the frame is not the one that is being traced (pdb prevents
that to happen though, in do_jump()).
I am working on another patch that should fix the issue by changing
PyFrame_GetLineNumber() and the f_lineno accessors.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17277>
_______________________________________
More information about the Python-bugs-list
mailing list