On Tuesday 29 September 2009 23:51:28 ext Mike Jackson wrote:
> I was wondering if the use of gdbmacros.cpp compiled into my project 
> would help show the contents of Qt classes when using a different IDE? 
> I know this is a bit "off topic" but since gdbmacros.cpp is included 
> with QtCreator I figure there might be some one who has a suggestion.
> 
> <background> I recently started a fresh project where I decided to 
> start replacing some boost classes with Qt classes and more fully 
> embracing the Qt frameworks. This is all well and good but the problem 
> is the usual one: in gdb, how to get a human readable representation of 
> things like QString?
>    The IDE in question is Eclipse CDT. Any help is appreciated
> </background>

gdbmacros.cpp is designed (if that's the correct word to use in
this case...) to work with Creator's debugger plugin. Especially with 
the template classes, gdbmacros.cpp alone will not be sufficient
to get "nice" display, even if you get your IDE to call the right
functions at the right time.

There are basically four options I can see:
(a) stick with what Eclipse provides.
(b) hack Eclipse to control gdbmacros.cpp like Creator does.
(c) wait for Eclipse to pick up gdb 7.0's python based "pretty printing".
(d) use Qt Creator.

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

Reply via email to