aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorMatthieu Longo <matthieu.longo@arm.com>2026-03-06 17:50:45 +0000
committerMatthieu Longo <matthieu.longo@arm.com>2026-04-08 11:48:55 +0100
commitb1cc575c428b342446143512e8b3d438b09e7c22 (patch)
treee1fb910686e299b966cdf076b9691323bb7727b7 /gdb/python/python.c
parent2db79d8000d40451b313ad6c3b6c029bcf82e643 (diff)
downloadbinutils-b1cc575c428b342446143512e8b3d438b09e7c22.tar.gz
binutils-b1cc575c428b342446143512e8b3d438b09e7c22.tar.bz2
binutils-b1cc575c428b342446143512e8b3d438b09e7c22.zip
gdb: fail configure if Python version is too old for limited API
GDB can be built against the Python limited API using the configure flag '--enable-py-limited-api=yes'. This flag is currently experimental, and the build is not yet fully successful. Today, the minimum required Python version for this option is 3.11. This requirement is not final and will be raised to a later version as the migration progresses. However, the configure script does not currently report an error if an older version of Python is used. Instead, the build fails later with numerous errors that are difficult to relate to Python limited API compatiblity. This patch adds a version check when '--enable-py-limited-api=yes' is specified, ensuring that the provided Python version meets the minimum requirements for the limited API support. If it does not, configure will now fail with a clear error message. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=23830 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions