[Qt-creator] gdbmucros helper add dump classes
Rudenko Eugene
erule.biz at gmail.com
Wed Oct 14 18:06:46 CEST 2009
On 14.10.2009, at 20:01, Andre Poenitz wrote:
> On Wed, Oct 14, 2009 at 02:59:36PM +0400, Rudenko Eugene wrote:
>>> You'd need something like
>>>
>>> d.beginHash();
>>> d.putItem("name", "queryItems");
>>> d.putItemCount("value", queryItems.size());
>>> d.beginItem("exp");
>>> d.put("(('"NS"QList<"NS"QPair<"NS"QString,"NS"QString>
>>>> '*)").put(d.data).put(')')->queryItems()");
>>> d.endItem();
>>> d.putItem("type", NS"QList<"NS"QPair<"NS"QString,"NS"QString>
>>>> ");
>>> d.putItem("numchild", queryItems.size());
>>> d.endHash();
>>>
>>> [Untested, the quotes in the long line are probably wrong]
>>>
>> Thank's for Idea, but it's not clear for me what result string is
>> needed for this condtruction:
>> d.put("(('"NS"QList<"NS"QPair<"NS"QString,"NS"QString>
>>> '*)").put(d.data).put(')')->queryItems()");
>
> 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 ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20091014/8db9abf7/attachment.html
More information about the Qt-creator-old
mailing list