• Home
  • Raw
  • Download

Lines Matching refs:tb

23 tb_dealloc(PyTracebackObject *tb)  in tb_dealloc()  argument
25 PyObject_GC_UnTrack(tb); in tb_dealloc()
26 Py_TRASHCAN_SAFE_BEGIN(tb) in tb_dealloc()
27 Py_XDECREF(tb->tb_next); in tb_dealloc()
28 Py_XDECREF(tb->tb_frame); in tb_dealloc()
29 PyObject_GC_Del(tb); in tb_dealloc()
30 Py_TRASHCAN_SAFE_END(tb) in tb_dealloc()
34 tb_traverse(PyTracebackObject *tb, visitproc visit, void *arg) in tb_traverse() argument
36 Py_VISIT(tb->tb_next); in tb_traverse()
37 Py_VISIT(tb->tb_frame); in tb_traverse()
42 tb_clear(PyTracebackObject *tb) in tb_clear() argument
44 Py_CLEAR(tb->tb_next); in tb_clear()
45 Py_CLEAR(tb->tb_frame); in tb_clear()
86 PyTracebackObject *tb; in newtracebackobject() local
92 tb = PyObject_GC_New(PyTracebackObject, &PyTraceBack_Type); in newtracebackobject()
93 if (tb != NULL) { in newtracebackobject()
95 tb->tb_next = next; in newtracebackobject()
97 tb->tb_frame = frame; in newtracebackobject()
98 tb->tb_lasti = frame->f_lasti; in newtracebackobject()
99 tb->tb_lineno = PyFrame_GetLineNumber(frame); in newtracebackobject()
100 PyObject_GC_Track(tb); in newtracebackobject()
102 return tb; in newtracebackobject()
110 PyTracebackObject *tb = newtracebackobject(oldtb, frame); in PyTraceBack_Here() local
111 if (tb == NULL) in PyTraceBack_Here()
113 tstate->curexc_traceback = (PyObject *)tb; in PyTraceBack_Here()
232 tb_printinternal(PyTracebackObject *tb, PyObject *f, long limit) in tb_printinternal() argument
236 PyTracebackObject *tb1 = tb; in tb_printinternal()
241 while (tb != NULL && err == 0) { in tb_printinternal()
245 tb->tb_frame->f_code->co_filename), in tb_printinternal()
246 tb->tb_lineno, in tb_printinternal()
247 PyString_AsString(tb->tb_frame->f_code->co_name)); in tb_printinternal()
250 tb = tb->tb_next; in tb_printinternal()