Description of problem: in gdb, 'info type-printers' command is broken when any loaded object files have type printers. Version-Release number of selected component (if applicable): gdb-7.6.50.20130731-19.fc20.x86_64 How reproducible: 100%. Steps to Reproduce: 1. Create and compile a trivial C++ program: echo 'int main() {}' > tm.C g++ -o tm -g tm.C 2. Run it under gdb, breaking at 'main' (after the C++ library is loaded). $ gdb tm (gdb) b main (gdb) r 3. Ask gdb for (gdb) info type-printers Actual results: Python Exception <type 'exceptions.AttributeError'> 'gdb.Objfile' object has no attribute 'name': Error occurred in Python command: 'gdb.Objfile' object has no attribute 'name' Expected results: Type printers for /lib64/libstdc++.so.6: std::cmatch std::cregex_iterator std::cregex_token_iterator etc. Additional info: Line 50 of /usr/share/gdb/python/gdb/command/type_printers.py is print ("%sType printers for %s:" % (sep, objfile.name)) It should be print ("%sType printers for %s:" % (sep, objfile.filename))
This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Still present in F22
(In reply to Clem Dickey from comment #0) > > Line 50 of /usr/share/gdb/python/gdb/command/type_printers.py is > print ("%sType printers for %s:" % (sep, objfile.name)) > It should be > print ("%sType printers for %s:" % (sep, objfile.filename)) I can confirm that this solves the problem.
gdb-7.8.2-39.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/gdb-7.8.2-39.fc21
gdb-7.9.1-17.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/gdb-7.9.1-17.fc22
Package gdb-7.9.1-17.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gdb-7.9.1-17.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-10822/gdb-7.9.1-17.fc22 then log in and leave karma (feedback).
gdb-7.9.1-17.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
gdb-7.8.2-39.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.