bpo-45923: Decouple suspension of tracing from tracing flag. (GH-31908)

This commit is contained in:
Mark Shannon 2022-03-15 17:06:21 +00:00 committed by GitHub
parent a8c728b8b7
commit 099f756141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 39 deletions

View file

@ -1333,23 +1333,6 @@ PyThreadState_SetAsyncExc(unsigned long id, PyObject *exc)
return 0;
}
void
PyThreadState_EnterTracing(PyThreadState *tstate)
{
tstate->tracing++;
_PyThreadState_PauseTracing(tstate);
}
void
PyThreadState_LeaveTracing(PyThreadState *tstate)
{
tstate->tracing--;
_PyThreadState_ResumeTracing(tstate);
}
/* Routines for advanced debuggers, requested by David Beazley.
Don't use unless you know what you are doing! */