My goal is to allow pretty printing of Qt classes in gdb. I.e if i have:
QString str("str");
in my code and execute
(gdb) print qwe
I want str content to be printed(not real QString structure).
gdb itself support pretty-printers to be defined using python, and it seems that Qt Creator partically use this feature.
The ideal solution would be use pretty printers shipped with Qt(can be found in QT_INSTALLATION\share\qtcreator\gdbmacros) or maybe even whole debugger(can be found in QT_INSTALLATION\pythongdb).
Anyway, trolls build a new api to define pretty printers over standard gdb api, and I cannot figure out how to enable it in plain gdb debugger.
So, is there a way to run gdb with Qt's pretty printers enabled without Qt Creator, or maybe any info about how to manage this.