From: Daniel Jacobowitz <drow@false.org>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: gdb-patches@sources.redhat.com, Vladimir Prus <ghost@cs.msu.su>
Subject: Re: [PATCH] -var-update [was Re: Variable objects: references formatting]
Date: Wed, 17 May 2006 01:28:00 -0000 [thread overview]
Message-ID: <20060517004527.GA19347@nevyn.them.org> (raw)
In-Reply-To: <17514.26047.918241.942848@farnswood.snap.net.nz>
On Wed, May 17, 2006 at 11:52:31AM +1200, Nick Roberts wrote:
> > For instance:
> >
> > /* The contents of VAL1 are supposed to be known. */
> > gdb_assert (!value_lazy (val1));
> >
> > If val1 is the reference at this point, then we haven't checked what we
> > think we have.
>
> Trying to interpret the code, given that val1 doesn't hold the value I
> wonder why this assertion is true i.e why is value->lazy=0 even though
> the value isn't in the contents field.
I am not sure what you mean.
!value_lazy (val1) means the contents of val1 have already been read
from the target. At this point, val1 is the _reference_. Nothing is
arranging to cache the value pointed to; that's what needs to happen.
> > 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.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-05-17 0:45 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-03 23:05 Variable objects: references formatting Nick Roberts
2006-05-03 23:50 ` Jim Blandy
2006-05-04 1:53 ` Nick Roberts
2006-05-04 17:32 ` Jim Blandy
2006-05-04 22:30 ` Nick Roberts
2006-05-05 8:08 ` Jim Blandy
2006-05-04 5:30 ` Vladimir Prus
2006-05-04 6:21 ` Nick Roberts
2006-05-04 7:00 ` Vladimir Prus
2006-05-04 7:20 ` Nick Roberts
2006-05-04 12:10 ` Vladimir Prus
2006-05-08 12:41 ` [PATCH] -var-update [was Re: Variable objects: references formatting] Nick Roberts
2006-05-08 17:27 ` Jim Blandy
2006-05-08 21:17 ` Nick Roberts
2006-05-15 16:54 ` Daniel Jacobowitz
2006-05-17 0:45 ` Nick Roberts
2006-05-17 1:28 ` Daniel Jacobowitz [this message]
2006-05-17 1:43 ` Nick Roberts
2006-05-17 3:39 ` Daniel Jacobowitz
2006-05-19 7:41 ` [PATCH] -var-update Nick Roberts
2006-05-19 9:47 ` Vladimir Prus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060517004527.GA19347@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=ghost@cs.msu.su \
--cc=nickrob@snap.net.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox