* MI floating varobj of invalid value
@ 2008-04-26 22:27 Vladimir Prus
2008-04-27 7:51 ` Eli Zaretskii
2008-04-28 18:02 ` Marc Khouzam
0 siblings, 2 replies; 5+ messages in thread
From: Vladimir Prus @ 2008-04-26 22:27 UTC (permalink / raw)
To: gdb
Presently, floating varobjs are reparsed and reevaluated at each stop. Reevaluation
can change the value, or can change type, or even can result in error, in which case
varobj will be marked out of scope. The only transition that is not supposed
now is from invalid state into valid state.
Suppose I've created varobj for watching for expression 'foo' and after some
debugging ended the debug session. When I start debug again, I still want to
see the value of 'foo'. However, if frontend tries to create varobj for foo
at the first stop, and 'foo' is not in scope, then varobj will not be created.
This means that the frontend has to try to create varobj on each stop, until
that succeeds. This sounds unnecessary -- we can make creation of floating
varobj always succeed, and then frontend can use -var-update to monitor changes
in varobj state.
Does making creation of floating varobj always succeed seem a good idea?
- Volodya
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MI floating varobj of invalid value
2008-04-26 22:27 MI floating varobj of invalid value Vladimir Prus
@ 2008-04-27 7:51 ` Eli Zaretskii
2008-04-27 15:38 ` Eli Zaretskii
2008-04-27 21:46 ` Vladimir Prus
2008-04-28 18:02 ` Marc Khouzam
1 sibling, 2 replies; 5+ messages in thread
From: Eli Zaretskii @ 2008-04-27 7:51 UTC (permalink / raw)
To: Vladimir Prus; +Cc: gdb
> From: Vladimir Prus <vladimir@codesourcery.com>
> Date: Sun, 27 Apr 2008 01:27:48 +0400
>
> However, if frontend tries to create varobj for foo
> at the first stop, and 'foo' is not in scope, then varobj will not be created.
Why is that? Since a floating varobj's expression is re-parsed every
time, you should be able to delay parsing and not fail creation
because some of its terms are not in scope, right?
> Does making creation of floating varobj always succeed seem a good idea?
Yes, I think so.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MI floating varobj of invalid value
2008-04-27 7:51 ` Eli Zaretskii
@ 2008-04-27 15:38 ` Eli Zaretskii
2008-04-27 21:46 ` Vladimir Prus
1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2008-04-27 15:38 UTC (permalink / raw)
To: Vladimir Prus; +Cc: gdb
> From: Vladimir Prus <vladimir@codesourcery.com>
> Date: Sun, 27 Apr 2008 01:27:48 +0400
>
> However, if frontend tries to create varobj for foo
> at the first stop, and 'foo' is not in scope, then varobj will not be created.
Why is that? Since a floating varobj's expression is re-parsed every
time, you should be able to delay parsing and not fail creation
because some of its terms are not in scope, right?
> Does making creation of floating varobj always succeed seem a good idea?
Yes, I think so.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MI floating varobj of invalid value
2008-04-27 7:51 ` Eli Zaretskii
2008-04-27 15:38 ` Eli Zaretskii
@ 2008-04-27 21:46 ` Vladimir Prus
1 sibling, 0 replies; 5+ messages in thread
From: Vladimir Prus @ 2008-04-27 21:46 UTC (permalink / raw)
To: gdb
Eli Zaretskii wrote:
>> From: Vladimir Prus <vladimir@codesourcery.com>
>> Date: Sun, 27 Apr 2008 01:27:48 +0400
>>
>> However, if frontend tries to create varobj for foo
>> at the first stop, and 'foo' is not in scope, then varobj will not be created.
>
> Why is that?
For no other reason than "implementation behaves this way".
> Since a floating varobj's expression is re-parsed every
> time, you should be able to delay parsing and not fail creation
> because some of its terms are not in scope, right?
Right, that's my reasoning.
- Volodya
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: MI floating varobj of invalid value
2008-04-26 22:27 MI floating varobj of invalid value Vladimir Prus
2008-04-27 7:51 ` Eli Zaretskii
@ 2008-04-28 18:02 ` Marc Khouzam
1 sibling, 0 replies; 5+ messages in thread
From: Marc Khouzam @ 2008-04-28 18:02 UTC (permalink / raw)
To: Vladimir Prus, gdb
> From: gdb-owner@sourceware.org on behalf of Vladimir Prus
> Sent: Sat 4/26/2008 5:27 PM
>
> Does making creation of floating varobj always succeed seem a good idea?
Sounds good to me too.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-04-28 13:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-26 22:27 MI floating varobj of invalid value Vladimir Prus
2008-04-27 7:51 ` Eli Zaretskii
2008-04-27 15:38 ` Eli Zaretskii
2008-04-27 21:46 ` Vladimir Prus
2008-04-28 18:02 ` Marc Khouzam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox