[PATCH 12/12] NEWS and Doc on --available-children-only

Yao Qi yao@codesourcery.com
Tue Feb 18 02:01:00 GMT 2014


On 02/17/2014 11:04 PM, Eli Zaretskii wrote:
> No, sorry.  "Children whose values are available" is not clear at all.
> 
> Can you explain to me what makes the value "available", or what
> prevents it from becoming available?  Then I will suggest a suitable
> wording.

OK, thanks in advance.

When GDB reads from trace frames, if the variables are collected and
saved in trace frames, GDB is able to show the valid values of these
variables.  We call "values of these variables are available".  OTOH,
if the variables are not collected, "their values are unavailable".

For example, in a traceframe, field a is collected but field b is not.
As a result, value of field a is available, and value of field b is
unavailable.

  struct foo
  {
    int a; /* Collected */
    int b; /* Uncollected */
  };

Going to MI/varobj world,  everything is structured as a tree, and each
tree node is about certain value.  foo.a and foo.b are the children of
foo in MI/varobj, so foo.a is an available child of foo, but foo.b
isn't.

The concept of available and unavailable can be illustrated by GDB
accessing trace frames, but the concept itself is quite independent and
can be applied to other situations.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list