Description of problem: QT Creator loses the ability to inspect certain objects in the locals window after GDB update. Also, if qt-debuginfo is installed everything debugging related becomes very slow. Version-Release number of selected component (if applicable): This combo is broken: gdb-7.7.1-13.fc20 qt-devel-4.8.6-9.fc20 qt-creator-3.1.1-1.fc20 This combo worked: gdb-7.6.50.20130731-16.fc20 qt-devel-4.8.6-9.fc20 qt-creator-3.1.1-1.fc20 How reproducible: always Steps to Reproduce: 1. Install gdb, qt-creator, qt-devel 2. New Qt Widgets Application, accept all the defaults. 3. In the .h include: #include <QMap> #include <QString> 4. In the mainwindow.cpp after setupUi() QMap<QString, QString> test; test["Hello"] = "hey"; test["World"] = "there"; 5. Put a breakpoint on test["World"] = "there"; 6. Start debugging (if you have qt-debuginfo installed expect it to take forever to hit that breakpoint) Actual results: In the locals window: | test <not accssible> QMap<QString, QString> Expected results: In the locals window: > test < 1 items> QMap<QString, QString> Additional info: Having the qt-debuginfo installed really slows down everything. Im guessing I should be filing this against some qt package but since downgrading gdb fixed all my debugging issues I thought I'd start here.
Created attachment 910230 [details] Screenshot of it working
Created attachment 910232 [details] Screenshot of it broken
The GDB slowness is tracked as: Bug 1096131 This should not affect any GDB functionality, though.
Sorry for breaking inter-Component compatibility in stable Fedora release. qt-creator needs to backport this fix: https://github.com/qtproject/qt-creator/commit/e3979fe09d7dd3ef1546e97d22d76178c8e38303 Debugger: Make dumper work with GDB 7.7 GDB 7.7 changed behavior e.g. for the names of anonymous fields, we need to adjust dumpers and some tests.
GDB change ("regression") since: echo 'struct s { union { int a; long b; }; } v;'|gcc -o anon.o -Wall -g -c -x c -;! ../gdb -data-directory ../data-directory -batch ./anon.o -ex "python print(gdb.lookup_global_symbol('v').value().type.fields()[0].name)"|grep -w None b5b08fb4ffa53ec088f8ad865bee0fd6edb2906f is the first bad commit commit b5b08fb4ffa53ec088f8ad865bee0fd6edb2906f Author: Siva Chandra <sivachandra> Date: Fri Dec 27 12:20:59 2013 -0800 Use bitpos and type to lookup a gdb.Field object when its name is 'None'. PR python/15464 PR python/16113
Fixed package building: http://koji.fedoraproject.org/koji/taskinfo?taskID=7065018
qt-creator-3.1.1-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/qt-creator-3.1.1-3.fc20
Package qt-creator-3.1.1-3.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing qt-creator-3.1.1-3.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-7622/qt-creator-3.1.1-3.fc20 then log in and leave karma (feedback).
This update fixes the issue for me using: Name : gdb Arch : x86_64 Version : 7.7.1 Release : 13.fc20 and Name : qt-creator Arch : x86_64 Version : 3.1.1 Release : 3.fc20 Thanks!
qt-creator-3.1.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/qt-creator-3.1.2-1.fc20
qt-creator-3.1.2-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.