On Monday 22 March 2010 14:05:10 ext Alex Richardson wrote:
> What I'm trying to achive is basically that I can type "print $any_qt_type" 
> in gdb and I get some 
> useful output. 

As far as I know recent gcc already ships with the "stock gdb" style
pretty-printers for "std::" types from the command line, and there are 
exist some for some Qt data type, too. See for example
http://nikosams.blogspot.com/2009/10/gdb-qt-pretty-printers.html

> This would also be useful when using Eclipse (I can't always use QtCreator) 
> since 
> Eclipse relies on the default GDB output (which would be way more useful with 
> pretty-printing).

In theory, the gdb/MI version of the "stock gdb" style pretty printers are 
supposed to work for any gdb/MI based gdb frontend. In practice, I have
still to see a gdb frontend using the underlying MI's "variable objects" 
in a fast and robust fashion for anything that's not a C style struct.

Andre'
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to