This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: variable objects and registers
On Friday 22 December 2006 09:46, Nick Roberts wrote:
> > > Insight just prints the type as a tooltip for structures. You seem to be
> > > saying that in Xcode you can do this and choose to expand it. Using
> > > "print" in Emacs, everything is automatically expanded which I must admit
> > > is messy with a large array or structure. Perhaps
> > > -data-evaluate-expression could be modified to print "--simple-values" or
> > > "--all-values" as -stack-list-locals does.
> >
> > I think it's much better to use varobjs for tooltips. It's much better for
> > structures.
>
> You might well be right but could you say why and how they would work with
> tooltips?
Just as Jim said -- you can make tooltips for structure values expandable using basically the
same code that is used for regular variable display. For KDevelop4, I'm thinking that I
can put the same widget, essentially, into variable wdiget and tooltip. Except that variable
widget would show all locals and tooltip will show just one value.
- Volodya