mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-44348: Move trace-info to thread-state (GH-26623)
* Move trace-info to thread state. * Correct output for pdb when turning on tracing in middle of line
This commit is contained in:
parent
e117c02837
commit
54cb63863f
4 changed files with 73 additions and 85 deletions
|
@ -688,6 +688,8 @@ new_threadstate(PyInterpreterState *interp, int init)
|
|||
/* If top points to entry 0, then _PyThreadState_PopLocals will try to pop this chunk */
|
||||
tstate->datastack_top = &tstate->datastack_chunk->data[1];
|
||||
tstate->datastack_limit = (PyObject **)(((char *)tstate->datastack_chunk) + DATA_STACK_CHUNK_SIZE);
|
||||
/* Mark trace_info as uninitialized */
|
||||
tstate->trace_info.code = NULL;
|
||||
|
||||
if (init) {
|
||||
_PyThreadState_Init(tstate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue