GDB Printers for Qt5

Where can I find gdb pretty printers for qt5?

I could only find qt4 on the kde developer site. Maybe someone knows if there are beautiful printers for the new version of Qt and where I can find them.

I know you can use the latest version of QtCreator, but I only need simple python scripts for GDB.

+7
source share
3 answers

The beautiful printers listed at https://techbase.kde.org/Development/Tutorials/Debugging/Debugging_with_GDB are only partially compatible with Qt 5. Some types (such as QByteArray) are not processed correctly.

Alex Merry worked on beautiful Qt 5 printers and tried to push them into the basic Qt5 packages (unfortunately, this did not happen). For convenience, I made his printers available at https://github.com/Lekensteyn/qt5printers.

+5
source

For reference, the following ( gdbinit ) supports qt5 objects and seems to be updated periodically:

https://cgit.kde.org/kdevelop.git/tree/plugins/gdb/printers

https://github.com/KDE/kdevelop/tree/master/plugins/gdb/printers

+4
source

As far as I know, beautiful printers are located here: http://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python/

In addition, GDB binaries with Python enabled can be found here. http://origin.releases.qt-project.org/gdb/

-1
source

Source: https://habr.com/ru/post/915152/


All Articles