[PATCH v2 1/2] gdb/python: remove Python 2 support
Pedro Alves
pedro@palves.net
Mon Mar 21 15:33:24 GMT 2022
On 2022-03-21 15:04, Simon Marchi wrote:
> On 2022-03-21 10:58, Eli Zaretskii via Gdb-patches wrote:
>> Here, I think we should say "only against Python 3", or say "Python 2
>> is not supported as of GDB 13", or something to that effect. Because
>> it is otherwise strange to mention Python 3, it sounds "out of the
>> blue".
>
> I'll say "can only be built against Python 3" then. I'd rather not say
> "GDB 13", since this text will live for many GDB versions. Updated
> locally.
We document in gdb/README the minimum supported version, so I think you
could drop the "Python 3" reference completely if you wanted.
Speaking of which, said gdb/README note should also be updated, as is documents
that the oldest supported version is 2.6:
`--with-python[=PYTHON]'
Build GDB with Python scripting support. (Done by default if
libpython is present and found at configure time.) Python makes
GDB scripting much more powerful than the restricted CLI
scripting language. If your host does not have Python installed,
you can find it on `http://www.python.org/download/'. The oldest
version of Python supported by GDB is 2.6. The optional argument
PYTHON is used to find the Python headers and libraries. It can
be either the name of a Python executable, or the name of the
directory in which Python is installed.
More information about the Gdb-patches
mailing list