From: Nick Roberts <nickrob@snap.net.nz>
To: Jim Blandy <jimb@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: RFA: Document @-frame variable objects
Date: Sat, 26 May 2007 05:53:00 -0000 [thread overview]
Message-ID: <18007.52013.601925.299571@kahikatea.snap.net.nz> (raw)
In-Reply-To: <18007.33414.708569.679329@kahikatea.snap.net.nz>
> > +@item
> > +If it is @samp{@@}, then the expression has no fixed scope: GDB
> > +evaluates @var{expression} in the currently selected frame, and future
> > +@code{-var-update} commands will use whatever frame is selected when
> > +they are invoked. Variable objects of this sort may go in and out of
> > +scope as the program runs, and their type may change from one update
> > +to the next.
>
> I don't think this is accurate. If you have two frames, where i=10 in
> one and i=5 in the other, GDB won't report any change with -var-update
> if you do "up" and "down" to move between them.
Actually I'm confused now because GDB 6.6 seems to behave differently to GDB in
CVS. In the latter, it does report changes, albeit with the wrong value in the
frame in which the varobj wasn't created.
I see that there is just one test for this type of varobj -- just for the
creation, in mi-var-cmd.exp and mi2-var-cmd.exp -- which explains why changes
haven't been noticed. If we are serious about using @, then we really need to
check it's behavior and add more tests.
--
Nick http://www.inet.net.nz/~nickrob
prev parent reply other threads:[~2007-05-26 5:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-25 17:59 Jim Blandy
2007-05-25 19:08 ` Eli Zaretskii
2007-05-26 0:42 ` Nick Roberts
2007-05-26 5:53 ` Nick Roberts [this message]
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=18007.52013.601925.299571@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb-patches@sourceware.org \
--cc=jimb@codesourcery.com \
/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