aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Tools/gdb/libpython.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2025-01-21 10:15:02 +0000
committerGitHub <noreply@github.com>2025-01-21 10:15:02 +0000
commitf5b6356a11bde64ac1e08478dd5ee7c47da653d8 (patch)
treef9367b879f47e48c03b0dbe66a9d573302f87764 /Tools/gdb/libpython.py
parentd3b1bb228c951f8245f36ee28d9b175786522730 (diff)
downloadcpython-f5b6356a11bde64ac1e08478dd5ee7c47da653d8.tar.gz
cpython-f5b6356a11bde64ac1e08478dd5ee7c47da653d8.zip
GH-128563: Add new frame owner type for interpreter entry frames (GH-129078)
Add new frame owner type for interpreter entry frames
Diffstat (limited to 'Tools/gdb/libpython.py')
-rwxr-xr-xTools/gdb/libpython.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 698ecbd3b54..e0d92e21dc4 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -99,7 +99,7 @@ Py_TPFLAGS_BASE_EXC_SUBCLASS = (1 << 30)
Py_TPFLAGS_TYPE_SUBCLASS = (1 << 31)
#From pycore_frame.h
-FRAME_OWNED_BY_CSTACK = 3
+FRAME_OWNED_BY_INTERPRETER = 3
MAX_OUTPUT_LEN=1024
@@ -1113,7 +1113,7 @@ class PyFramePtr:
return int(instr_ptr - first_instr)
def is_shim(self):
- return self._f_special("owner", int) == FRAME_OWNED_BY_CSTACK
+ return self._f_special("owner", int) == FRAME_OWNED_BY_INTERPRETER
def previous(self):
return self._f_special("previous", PyFramePtr)