On 14.10.2009, at 21:06, Andre Poenitz wrote:
On Wed, Oct 14, 2009 at 08:06:46PM +0400, Rudenko Eugene wrote:The result should look like (('QList<QPair<QString,QString> >'*)0x01234568)->queryItems() (assuming that you don't have configured your Qt with -qtnamespace)Can you decode this string ? What is each part means ? As I can understans this means ... ( ("DataType name "[pointer sign] )Address)->method(); Is it right ?Yes. Be aware of the single quotes. They are not valid in C++ but needed to convince gdb to do the right thing.
Yes, It's clear. And I have one more question. I have my Lib project and my custom classes with it.If I add this dumpers in gdbmacros helper then I need to link to my lib. It's not A good way. Maybe It's better to make some common interface for custom classes, I need to dump. Or maybe realise some mechanism to embed some code to y custom classes to help dumper understand this class ? Do you plan to realise something in this direction and what recommendations you can get to me for this decision ?
With best Regards.
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
