mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
bpo-45923: Decouple suspension of tracing from tracing flag. (GH-31908)
This commit is contained in:
parent
a8c728b8b7
commit
099f756141
3 changed files with 29 additions and 39 deletions
|
@ -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! */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue