A slight change to SET_LINENO-less tracing.

This makes things a touch more like 2.2.  Read the comments in
Python/ceval.c for more details.
This commit is contained in:
Michael W. Hudson 2002-09-11 15:36:32 +00:00
parent 519a342d79
commit 02ff6a9952
5 changed files with 59 additions and 12 deletions

View file

@ -29,6 +29,8 @@ typedef struct _frame {
PyObject *f_exc_type, *f_exc_value, *f_exc_traceback;
PyThreadState *f_tstate;
int f_lasti; /* Last instruction if called */
/* As of 2.3 f_lineno is only valid when tracing is active (i.e. when
f_trace is set) -- at other times use PyCode_Addr2Line instead. */
int f_lineno; /* Current line number */
int f_restricted; /* Flag set if restricted operations
in this scope */