2013/9/2 Timothy Pearson
<kb9vqf(a)pearsoncomputing.net>
Is there
gdb pretty-printers for (t)qt3 and tde/kde3 classes?
If you don't know, «pretty-printer» is a python script for printing
various
types in nice human-readable way e.g. QString as normal string, QList as
number of values etc.
I don't know. :-) If not, we should be able to take the old Qt3 pretty
printers and make them work with minor modification...
Tim
I don't think there were any in Qt3 times... this feature was introduced
only in gdb-7.0.
So IMO unless nobody of us has wrote them himself there isn't any...
Here are some pretty-printers particularly based on qt4 from kdevelop.
Just either type in gdb shell or add to your gdbinit:
======================================
set print pretty on
python
import sys
sys.path.insert(0, '/path/where/you/placed/this/file/')
from tqt3 import register_tqt3_printers
register_tqt3_printers (None)
end
======================================
It would be nice to put them somewhere to tdevelop and also to integrate
with its gdb interface. Although I don't use it and don't know how exectly.