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 07:29:28PM +0300, Vladimir Prus wrote:
> This is in fact completely different change. Here's
> what "-stack-list-locals --all-values" produces:
>
> ^done,locals=[{name="the_struct",value="{a_fr = 120, b = 333, inner_fr =
> {i = 0, j = 5, k = 5}, c = 3, pad = {0 <repeats 100 times>}, d =
> 10, pad2 = {0 <repeats 100 times>}, e = 10}"}]
>
> So, the difference between --all-values and --simple-values is dramatic. In
> case of --var-list-children you don't get full structure printed. You won't
> even have the structure *read* (with my laziness patch, that is).
>
> So, while --simple-values might be reasonable for -stack-list-locals, it's not
> all that needed for -var-list-children.
Hmm. I didn't realize that one use of --all-values printed out
structure contents and the other only "{...}" - I'm quite surprised.
I guess --simple-values and --all-values aren't so different then
for the varobj commands :-(
--
Daniel Jacobowitz
CodeSourcery