Re: [RFA] Document fixed/floating variable objects and thread-id.

Vladimir Prus
2008-04-23T10:26:50Z

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