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: xgsa <xgsa at yandex dot ru>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 03 May 2012 09:51:25 +0300
- Subject: Re: [patch] Use the string returned by pretty printer for MI varobjs instead of "{...}"
- References: <305151335125397@web28e.yandex.ru>
Ping! Please, review the patch.
Anton.
-------- Original message --------
Hi,
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.
No regressions on linux32.
Thanks,
Anton