Re: [PATCH] -var-update [was Re: Variable objects: references formatting]

Nick Roberts
2006-05-17T01:28:30Z

> > > Every time my_value_equal is called its first argument comes from a
> > > varobj's ->value. It seems to me that if we want to properly know
> > > whether the varobj has changed, we'd better have read its value into
> > > GDB.
> >
> > Could it not doing that because GDB's value mechanism isn't working
> > properly for references?
>
> The value mechanism is working fine; it's varobj that does not support
> references.

Well GDB appears to interpret the address as being the value, its actual value
doesn't seem to be stored in the value structure (or if it is, I can't find
it).

When the actual value gets printed it seems to come out of smething like
print_address_demangle.

--
Nick http://www.inet.net.nz/~nickrob