[Qt-creator] gdbmucros helper add dump classes

Rudenko Eugene erule.biz at gmail.com
Thu Oct 15 14:54:02 CEST 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20091015/e3cb24f1/attachment.html 


More information about the Qt-creator-old mailing list