From: Vladimir Prus <vladimir@codesourcery.com>
To: Eli Zaretskii <eliz@gnu.org>, gdb-patches@sourceware.org
Subject: Re: [RFA] Document fixed/floating variable objects and thread-id.
Date: Wed, 23 Apr 2008 11:52:00 -0000 [thread overview]
Message-ID: <E1JocB1-0001XW-Eh@zigzag.lvk.cs.msu.su> (raw)
In-Reply-To: <200804100105.31748.ghost@cs.msu.su>
Vladimir Prus wrote:
> On Thursday 10 April 2008 00:52:01 Eli Zaretskii wrote:
>> > From: Vladimir Prus <ghost@cs.msu.su>
>> > Date: Wed, 9 Apr 2008 21:47:35 +0400
>> > Cc: gdb-patches@sources.redhat.com
>> >
>> > > Then how about ``the values of variables whose names appear in the
>> > > expressions are re-evaluated every time''?
>> >
>> > I'm afraid that this statement is true for fixed variable objects too,
>> > and it still makes it sound like we pick variables, and then reevaluate it.
>> > Instead, we reparse entire expression which can find completely different
>> > variables.
>>
>> Well, I'm afraid I don't understand what you mean. Please show me an
>> example where reparsing an expression would yield something different
>> each time.
>
> void foo (int i)
> {
> ...
> }
>
> void bar (int i)
> {
> ...
> }
>
>
> If you create a fixed varobj in 'bar', then each time you updating, new value of
> bar's i will be read. If you create a floating varobj in 'bar', then if you update
> it while still in bar, new value of bar's i will be read. If you update it in foo,
> then the value of foo's i will be used.
>
> So while for fixed varobj's update fetches new value of 'i', for floating varobjs
> we also decide which 'i' to use each time.
Eli,
does the above make the code behaviour clear enough for you to suggest better doc
working, or you want something else clarified?
Thanks,
Volodya
next prev parent reply other threads:[~2008-04-23 10:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-04 9:32 Vladimir Prus
2008-04-04 11:47 ` Eli Zaretskii
2008-04-09 13:49 ` Vladimir Prus
2008-04-09 15:21 ` Eli Zaretskii
2008-04-09 17:06 ` Vladimir Prus
2008-04-09 18:04 ` Eli Zaretskii
2008-04-09 20:37 ` Vladimir Prus
2008-04-09 21:25 ` Eli Zaretskii
2008-04-09 22:17 ` Vladimir Prus
2008-04-23 11:52 ` Vladimir Prus [this message]
2008-04-23 18:00 ` Eli Zaretskii
2008-04-26 17:44 ` Vladimir Prus
2008-04-26 18:45 ` Eli Zaretskii
2008-04-04 13:08 ` Daniel Jacobowitz
2008-04-04 13:44 ` Pedro Alves
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=E1JocB1-0001XW-Eh@zigzag.lvk.cs.msu.su \
--to=vladimir@codesourcery.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/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