[Qt-creator] RFC: Dropping support for Python 2.x for GDB/LLDB

Alexandru Croitor alexandru.croitor at qt.io
Tue Feb 26 11:26:03 CET 2019


Hi,

Afaik all macOS versions so far, link against and use the system Python 2.7.x in lldb.

In which case I assume that the dumper script and friends have to stay 2.7.x compatible.

> On 21. Feb 2019, at 20:51, André Pönitz <apoenitz at t-online.de> wrote:
> 
> 
> Hi all.
> 
> As you may know, Qt Creator heavily uses Python in the Debugger
> plugin to interact with the "real" debuggers (GDB, LLDB, CDB, PDB).
> 
> Currently the scripts in the glue code works with both Python
> 2.7 and 3.x. This is a workable setup, but makes it a bit
> unpleasant to test and maintain and in some code paths less
> efficient than a 3.x-only setup.
> 
> I am therefore pondering the idea of dropping support for Python 2.x,
> and I'd like to gauge the potential heat such a move will draw.
> 
> What do people see as output of the following:
> 
>    python --version
>    python3 --version
>    gdb -version
>    gdb -batch -ex 'py import sys' -ex 'py print(sys.version)'
>    lldb -version
>    lldb -batch -o 'sc import sys' -o 'sc print(sys.version)
> 
> 
> For the record, on my 18.04.1 LTS here this yields something like:
> 
>    Python 2.7.15rc1
>    Python 3.6.7
>    GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
>    3.6.7 (default, Oct 22 2018, 11:32:17)
>    lldb version 6.0.0
>    2.7.15rc1 (default, Nov 12 2018, 14:31:15)
> 
> 
> Private reply would be just fine, I might have some follow-up
> questions for certain setups.
> 
> Andre'
> 
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator



More information about the Qt-creator mailing list