Home
last modified time | relevance | path

Searched refs:tb (Results 1 – 25 of 66) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dtraceback.c23 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()
[all …]
Derrors.c110 PyObject *exception, *value, *tb; in PyErr_GivenExceptionMatches() local
111 PyErr_Fetch(&exception, &value, &tb); in PyErr_GivenExceptionMatches()
126 PyErr_Restore(exception, value, tb); in PyErr_GivenExceptionMatches()
145 PyErr_NormalizeException(PyObject **exc, PyObject **val, PyObject **tb) in PyErr_NormalizeException() argument
218 initial_tb = *tb; in PyErr_NormalizeException()
219 PyErr_Fetch(exc, val, tb); in PyErr_NormalizeException()
221 if (*tb == NULL) in PyErr_NormalizeException()
222 *tb = initial_tb; in PyErr_NormalizeException()
241 PyErr_NormalizeException(exc, val, tb); in PyErr_NormalizeException()
271 _PyErr_ReplaceException(PyObject *exc, PyObject *val, PyObject *tb) in _PyErr_ReplaceException() argument
[all …]
Dpythonrun.c1105 PyObject *exception, *value, *tb; in handle_system_exit() local
1113 PyErr_Fetch(&exception, &value, &tb); in handle_system_exit()
1150 PyErr_Restore(exception, value, tb); in handle_system_exit()
1159 PyObject *exception, *v, *tb, *hook; in PyErr_PrintEx() local
1164 PyErr_Fetch(&exception, &v, &tb); in PyErr_PrintEx()
1167 PyErr_NormalizeException(&exception, &v, &tb); in PyErr_PrintEx()
1174 PySys_SetObject("last_traceback", tb); in PyErr_PrintEx()
1179 exception, v, tb ? tb : Py_None); in PyErr_PrintEx()
1205 PyErr_Display(exception, v, tb); in PyErr_PrintEx()
1214 PyErr_Display(exception, v, tb); in PyErr_PrintEx()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dtraceback.c23 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()
[all …]
Derrors.c110 PyObject *exception, *value, *tb; in PyErr_GivenExceptionMatches() local
111 PyErr_Fetch(&exception, &value, &tb); in PyErr_GivenExceptionMatches()
124 PyErr_Restore(exception, value, tb); in PyErr_GivenExceptionMatches()
143 PyErr_NormalizeException(PyObject **exc, PyObject **val, PyObject **tb) in PyErr_NormalizeException() argument
216 initial_tb = *tb; in PyErr_NormalizeException()
217 PyErr_Fetch(exc, val, tb); in PyErr_NormalizeException()
219 if (*tb == NULL) in PyErr_NormalizeException()
220 *tb = initial_tb; in PyErr_NormalizeException()
239 PyErr_NormalizeException(exc, val, tb); in PyErr_NormalizeException()
646 PyObject *f, *t, *v, *tb; in PyErr_WriteUnraisable() local
[all …]
Dpythonrun.c1080 PyObject *exception, *value, *tb; in handle_system_exit() local
1088 PyErr_Fetch(&exception, &value, &tb); in handle_system_exit()
1125 PyErr_Restore(exception, value, tb); in handle_system_exit()
1134 PyObject *exception, *v, *tb, *hook; in PyErr_PrintEx() local
1139 PyErr_Fetch(&exception, &v, &tb); in PyErr_PrintEx()
1142 PyErr_NormalizeException(&exception, &v, &tb); in PyErr_PrintEx()
1149 PySys_SetObject("last_traceback", tb); in PyErr_PrintEx()
1154 exception, v, tb ? tb : Py_None); in PyErr_PrintEx()
1180 PyErr_Display(exception, v, tb); in PyErr_PrintEx()
1189 PyErr_Display(exception, v, tb); in PyErr_PrintEx()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlstring.c66 stringtable *tb = &G(L)->strt; in luaS_resize() local
69 if (newsize > tb->size) { in luaS_resize()
70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize()
71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize()
74 for (i=0; i<tb->size; i++) { in luaS_resize()
75 GCObject *p = tb->hash[i]; in luaS_resize()
76 tb->hash[i] = NULL; in luaS_resize()
80 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize()
81 tb->hash[h] = p; in luaS_resize()
86 if (newsize < tb->size) { in luaS_resize()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dtraceback.py46 def print_tb(tb, limit=None, file=None): argument
60 while tb is not None and (limit is None or n < limit):
61 f = tb.tb_frame
62 lineno = tb.tb_lineno
71 tb = tb.tb_next
74 def format_tb(tb, limit = None): argument
76 return format_list(extract_tb(tb, limit))
78 def extract_tb(tb, limit = None): argument
94 while tb is not None and (limit is None or n < limit):
95 f = tb.tb_frame
[all …]
Ddis.py51 def distb(tb=None): argument
53 if tb is None:
55 tb = sys.last_traceback
58 while tb.tb_next: tb = tb.tb_next
59 disassemble(tb.tb_frame.f_code, tb.tb_lasti)
Dtypes.py69 tb = sys.exc_info()[2] variable
70 TracebackType = type(tb)
71 FrameType = type(tb.tb_frame)
72 del tb
Dcode.py150 type, value, tb = sys.exc_info()
153 sys.last_traceback = tb
154 tblist = traceback.extract_tb(tb)
161 tblist = tb = None
Dasyncore.py553 t, v, tb = sys.exc_info()
555 if not tb: # Must have a traceback
557 while tb:
559 tb.tb_frame.f_code.co_filename,
560 tb.tb_frame.f_code.co_name,
561 str(tb.tb_lineno)
563 tb = tb.tb_next
566 del tb
Dtempfile.py410 def __exit__(self, exc, value, tb): argument
411 result = self.file.__exit__(exc, value, tb)
415 def __exit__(self, exc, value, tb): argument
416 self.file.__exit__(exc, value, tb)
528 def __exit__(self, exc, value, tb): argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dtraceback.py46 def print_tb(tb, limit=None, file=None): argument
60 while tb is not None and (limit is None or n < limit):
61 f = tb.tb_frame
62 lineno = tb.tb_lineno
71 tb = tb.tb_next
74 def format_tb(tb, limit = None): argument
76 return format_list(extract_tb(tb, limit))
78 def extract_tb(tb, limit = None): argument
94 while tb is not None and (limit is None or n < limit):
95 f = tb.tb_frame
[all …]
Ddis.py51 def distb(tb=None): argument
53 if tb is None:
55 tb = sys.last_traceback
58 while tb.tb_next: tb = tb.tb_next
59 disassemble(tb.tb_frame.f_code, tb.tb_lasti)
Dtypes.py69 tb = sys.exc_info()[2] variable
70 TracebackType = type(tb)
71 FrameType = type(tb.tb_frame)
72 del tb
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/
Dresult.py154 exctype, value, tb = err
156 while tb and self._is_relevant_tb_level(tb):
157 tb = tb.tb_next
161 length = self._count_relevant_tb_levels(tb)
162 msgLines = traceback.format_exception(exctype, value, tb, length)
164 msgLines = traceback.format_exception(exctype, value, tb)
180 def _is_relevant_tb_level(self, tb): argument
181 return '__unittest' in tb.tb_frame.f_globals
183 def _count_relevant_tb_levels(self, tb): argument
185 while tb and not self._is_relevant_tb_level(tb):
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dgenobject.c221 PyObject *tb = NULL; in gen_throw() local
224 if (!PyArg_UnpackTuple(args, "throw", 1, 3, &typ, &val, &tb)) in gen_throw()
229 if (tb == Py_None) in gen_throw()
230 tb = NULL; in gen_throw()
231 else if (tb != NULL && !PyTraceBack_Check(tb)) { in gen_throw()
239 Py_XINCREF(tb); in gen_throw()
242 PyErr_NormalizeException(&typ, &val, &tb); in gen_throw()
268 PyErr_Restore(typ, val, tb); in gen_throw()
275 Py_XDECREF(tb); in gen_throw()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dgenobject.c218 PyObject *tb = NULL; in gen_throw() local
221 if (!PyArg_UnpackTuple(args, "throw", 1, 3, &typ, &val, &tb)) in gen_throw()
226 if (tb == Py_None) in gen_throw()
227 tb = NULL; in gen_throw()
228 else if (tb != NULL && !PyTraceBack_Check(tb)) { in gen_throw()
236 Py_XINCREF(tb); in gen_throw()
239 PyErr_NormalizeException(&typ, &val, &tb); in gen_throw()
265 PyErr_Restore(typ, val, tb); in gen_throw()
272 Py_XDECREF(tb); in gen_throw()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_throw.py49 tb = results["tb"].clone()
50 tb.prefix = u""
53 with_tb = Attr(e, Name(u'with_traceback')) + [ArgList([tb])]
Dfix_raise.py74 tb = results["tb"].clone()
75 tb.prefix = u""
83 with_tb = Attr(e, Name(u'with_traceback')) + [ArgList([tb])]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/faqwiz/
Dfaqw.py30 t, v, tb = sys.exc_info() variable
33 cgi.print_exception(t, v, tb)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_traceback.py178 type_, value, tb = sys.exc_info()
180 ''.join(traceback.format_tb(tb))
182 traceback_print(tb, file_)
Dtest_exceptions.py164 exc, err, tb = sys.exc_info()
165 co = tb.tb_frame.f_code
176 exc, err, tb = sys.exc_info()
177 co = tb.tb_frame.f_code
180 co2 = tb.tb_frame.f_back.f_code
463 e, v, tb = g()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
DWith.py13 def __exit__(self, exc, val, tb): argument
166 def __exit__(self, exc, val, tb): argument

123