Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 3.5.0
-
RHEL 6.6 with standard devtoolset-3 installed
Description
It's not possible to debug with CentOS 6/ RHEL 6.6 even with the prebuilt binary packages we provide. It seems that the gdb coming with devtoolset-3 is too old (version 7.2) and it also has too old python (2.6).
The debugger fails to start with:
>&"Traceback (most recent call last):\n" >&" File \"<string>\", line 1, in <module>\n" >&" File \"/home/user/Qt5.5.0/Tools/QtCreator/share/qtcreator/debugger/gdbbridge.py\", line 20, in <module>\n" >&" from dumper import *\n" >&" File \"/home/user/Qt5.5.0/Tools/QtCreator/share/qtcreator/debugger/dumper.py\", line 37, in <module>\n" >&" import importlib\n" >&"ImportError: No module named importlib\n" >&"Error while executing Python code.\n" >14^error,msg="Error while executing Python code."
As a workaround one would need to update the toolchain.
Here are the steps to make it working:
- yum install ncurses-devel
- yum install python27-python-devel
- wget ftp://sourceware.org/pub/gdb/releases/gdb-7.7.tar.gz
- tar xfvz gdb-7.7.tar.gz
- cd gdb-7.7
- export LIBS=-L/opt/rh/python27/root/usr/lib64/
- ./configure --prefix=/home/user/gdb-install --with-python=/opt/rh/python27/root/usr/bin/python2.7
- make
- make install
- in Qt Creator 3.5.0: add /home/user/gdb-install/bin/gdb as the new debugger
- create/augment kit with that debugger