Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* 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

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