aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-internal.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-10-21 10:04:14 -0600
committerTom Tromey <tromey@adacore.com>2025-10-23 07:43:00 -0600
commitf20c97f00d29d0a4459a0606164ceb192fe6432b (patch)
tree58e6bd740cfa48bb4f22211429e87f47d7108cb6 /gdb/python/python-internal.h
parente162de19f9b98279b48081eca88beb080a656b2f (diff)
downloadbinutils-f20c97f00d29d0a4459a0606164ceb192fe6432b.tar.gz
binutils-f20c97f00d29d0a4459a0606164ceb192fe6432b.tar.bz2
binutils-f20c97f00d29d0a4459a0606164ceb192fe6432b.zip
Remove Py_TPFLAGS_CHECKTYPES
According to 'git annotate', the Py_TPFLAGS_CHECKTYPES was added to python-internal.h way back when gdb was first ported to Python 3. It was a compatibility fix for Python 2. This is not needed any more, because Python 2 is no longer supported. This patch removes the vestiges. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r--gdb/python/python-internal.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index e2baa6a70b5..54467ba49f3 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -90,8 +90,6 @@
static_assert (PY_VERSION_HEX >= 0x03040000);
-#define Py_TPFLAGS_CHECKTYPES 0
-
/* If Python.h does not define WITH_THREAD, then the various
GIL-related functions will not be defined. However,
PyGILState_STATE will be. */