This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI non-stop mode spec
On Thursday 20 March 2008 23:53:02 Nick Roberts wrote:
> > > -> Should @ varobjs be bound to only thread, or to nothing at
> > > all.
> >
> > This is an interesting question. It brings the possibility of
> > supporting both those options. That would mean three types of
> > variable objects: 1- bound to a frame
> > 2- bound to a thread
> > 3- not bound
>
> I think there are more than three possibilities:
>
> 1) bound to the frame in which varobj is created (*).
> 2) bound to the selected frame (@)
> 3) bound to the thread in which varobj is created and 1)
> 4) bound to the thread in which varobj is created and 2)
> 5) bound to the selected thread and 1)
> 6) bound to the selected thread and 2)
>
> Maybe there are more, e.g, all threads (I've not really thought them
> through)
>
> Currently only 1) works and 2) has a broken implementation.
Didn't you check in a patch to make *-varobjs be found to a thread?
Furthermore, are (1) and (2) actually separate options? You cannot
evaluate varobj in a frame without also specifying a thread.
- Volodya