Lines Matching defs:tstate
270 PyThreadState *tstate = _PyThreadState_GET();
275 _PyErr_Fetch(tstate, &exc, &val, &tb);
285 frame = PyFrame_New(tstate, code, globals, NULL);
292 _PyErr_Restore(tstate, exc, val, tb);
333 PyThreadState *tstate = _PyThreadState_GET();
334 syspath = _PySys_GetAttr(tstate, &_Py_ID(path));
366 binary = _PyObject_CallMethodFormat(tstate, open, "ss", namebuf, "rb");
1221 dump_traceback(int fd, PyThreadState *tstate, int write_header)
1230 frame = tstate->cframe->current_frame;
1258 _Py_DumpTraceback(int fd, PyThreadState *tstate)
1260 dump_traceback(fd, tstate, 1);
1269 write_thread_id(int fd, PyThreadState *tstate, int is_current)
1276 tstate->thread_id,
1291 PyThreadState *tstate;
1324 tstate = PyInterpreterState_ThreadHead(interp);
1325 if (tstate == NULL)
1329 tstate = PyInterpreterState_ThreadHead(interp);
1340 write_thread_id(fd, tstate, tstate == current_tstate);
1341 if (tstate == current_tstate && tstate->interp->gc.collecting) {
1344 dump_traceback(fd, tstate, 0);
1345 tstate = PyThreadState_Next(tstate);
1347 } while (tstate != NULL);