This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Change how value is shown for varobjs of type vector.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Andrew Burgess <aburgess at broadcom dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Sun, 14 Oct 2012 10:25:27 -0700
- Subject: Re: [RFC] Change how value is shown for varobjs of type vector.
- References: <50631DE7.7050702@broadcom.com>
> I have a patch (below) that changes the value field from the current
> "[8]" to "{ 0, 0, 0, 0, 0, 0, 0, 0 }". The varobj still has 8
> children, and the top level varobj is still not editable, you have to
> edit through the children.
I personally do not have a strong objection to this change, but I have
to admit that I am not particularly fond of the idea. I think that
this issue should be handled at the front-end level (Eg. Eclipse),
and in a manor that is general to all arrays. One possible suggestion
would be to have the IDE detect small arrays of integrals, and in
that case display them in a more convenient way right away. But
perhaps it isn't easy, in which case maybe a change in GDB would make
better sense. I just don't like it because it breaks a little bit
the consistency of the value field.
--
Joel