diff options
author | Mark Shannon <mark@hotpy.org> | 2021-06-10 07:46:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 07:46:59 (GMT) |
commit | 54cb63863f19a7c64d9a3a5fd97bdfc0dd7ab374 (patch) | |
tree | dc0e977d4f8e5d8f43e2e231eff206cd7bee9f3a /Include | |
parent | e117c0283705943189e6b1aef668a1f68f3f00a4 (diff) | |
download | cpython-54cb63863f19a7c64d9a3a5fd97bdfc0dd7ab374.zip cpython-54cb63863f19a7c64d9a3a5fd97bdfc0dd7ab374.tar.gz cpython-54cb63863f19a7c64d9a3a5fd97bdfc0dd7ab374.tar.bz2 |
bpo-44348: Move trace-info to thread-state (GH-26623)
* Move trace-info to thread state.
* Correct output for pdb when turning on tracing in middle of line
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/pystate.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 1049eda..56ea8d0 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -29,6 +29,11 @@ typedef int (*Py_tracefunc)(PyObject *, PyFrameObject *, int, PyObject *); #define PyTrace_OPCODE 7 +typedef struct { + PyCodeObject *code; // The code object for the bounds. May be NULL. + PyCodeAddressRange bounds; // Only valid if code != NULL. +} PyTraceInfo; + typedef struct _cframe { /* This struct will be threaded through the C stack * allowing fast access to per-thread state that needs @@ -160,6 +165,7 @@ struct _ts { uint64_t id; CFrame root_cframe; + PyTraceInfo trace_info; _PyStackChunk *datastack_chunk; PyObject **datastack_top; |