mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
GH-100987: Allow objects other than code objects as the "executable" of an internal frame. (GH-105727)
* Add table describing possible executable classes for out-of-process debuggers. * Remove shim code object creation code as it is no longer needed. * Make lltrace a bit more robust w.r.t. non-standard frames.
This commit is contained in:
parent
ad56340b66
commit
7199584ac8
28 changed files with 541 additions and 606 deletions
|
@ -785,7 +785,7 @@ tb_displayline(PyTracebackObject* tb, PyObject *f, PyObject *filename, int linen
|
|||
}
|
||||
|
||||
int code_offset = tb->tb_lasti;
|
||||
PyCodeObject* code = frame->f_frame->f_code;
|
||||
PyCodeObject* code = _PyFrame_GetCode(frame->f_frame);
|
||||
const Py_ssize_t source_line_len = PyUnicode_GET_LENGTH(source_line);
|
||||
|
||||
int start_line;
|
||||
|
@ -1164,7 +1164,7 @@ done:
|
|||
static void
|
||||
dump_frame(int fd, _PyInterpreterFrame *frame)
|
||||
{
|
||||
PyCodeObject *code = frame->f_code;
|
||||
PyCodeObject *code =_PyFrame_GetCode(frame);
|
||||
PUTS(fd, " File ");
|
||||
if (code->co_filename != NULL
|
||||
&& PyUnicode_Check(code->co_filename))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue