mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +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
|
|
@ -244,7 +244,7 @@ sys_trace_line_func(
|
|||
"Missing frame when calling trace function.");
|
||||
return NULL;
|
||||
}
|
||||
assert(args[0] == (PyObject *)frame->f_frame->f_code);
|
||||
assert(args[0] == (PyObject *)_PyFrame_GetCode(frame->f_frame));
|
||||
return trace_line(tstate, self, frame, line);
|
||||
}
|
||||
|
||||
|
|
@ -286,7 +286,6 @@ sys_trace_jump_func(
|
|||
"Missing frame when calling trace function.");
|
||||
return NULL;
|
||||
}
|
||||
assert(code == frame->f_frame->f_code);
|
||||
if (!frame->f_trace_lines) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue