This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] -var-update [was Re: Variable objects: references formatting]
> > > 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