This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: MI: -var-list-children --simple-values
On Wed, Nov 15, 2006 at 05:55:02PM +0300, Vladimir Prus wrote:
> Why? Especially, why it's better than --all-values. Note that --simple-values
> only don't print values of arrays, structures and unions, and if you check
> c_value_of_variable, you'll see that for structures just a literal string is
> returned, while for array very trivial formatting operation is used.
>
> In other words, --all-values do not involve any complex processing, reading
> data from the target, or anything. What are we trying to save by
> adding --simple-values?
But the result of --all-values where it differs from --simple-values is
probably not used. I've never used an IDE that printed out the
collapsed value of a struct; instead it wants an expandable item
for each struct member. --simple-values is for things without
children.
I didn't invent --simple-values though, I just added it to -var-update.
Nick added it to -stack-list-locals on 20-Jan-2004. Ah here:
http://sourceware.org/ml/gdb/2003-11/msg00055.html
--
Daniel Jacobowitz
CodeSourcery