This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Use the string returned by pretty printer for MI varobjs instead of "{...}"
- From: Eli Zaretskii <eliz at gnu dot org>
- To: xgsa <xgsa at yandex dot ua>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 04 May 2012 10:43:09 +0300
- Subject: Re: [patch] Use the string returned by pretty printer for MI varobjs instead of "{...}"
- References: <305151335125397@web28e.yandex.ru>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: xgsa <xgsa@yandex.ua>
> Envelope-From: xgsa@yandex.ru
> Date: Mon, 23 Apr 2012 00:09:57 +0400
>
>
> The documentation for -var-create says that "for a varobj whose type is some sort of aggregate (e.g., a struct), or for a dynamic varobj, the 'value' attribute will not be interesting". That's not true, as dynamic varobj could also have no children (so its value will be not "{...}" and will be interesting). However I think the string value of varobj that has pretty printer installed should always be returned via MI. It could contain such a useful information as container length or reference count for smart pointers. Moreover, it seems that this information cannot be accessed via MI in another way. This patch contains the proposed fix, documentation and test suite update.
The documentation part is fine with me.
Thanks.