From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18369 invoked by alias); 22 Dec 2006 07:30:33 -0000 Received: (qmail 18359 invoked by uid 22791); 22 Dec 2006 07:30:33 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Dec 2006 07:30:28 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1GxerF-0003xI-HJ for gdb-patches@sources.redhat.com; Fri, 22 Dec 2006 10:30:25 +0300 Received: from localhost ([127.0.0.1] helo=ip6-localhost) by zigzag.lvk.cs.msu.su with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1Gxer4-0003ws-8f; Fri, 22 Dec 2006 10:30:10 +0300 From: Vladimir Prus To: Nick Roberts Subject: Re: variable objects and registers Date: Fri, 22 Dec 2006 07:30:00 -0000 User-Agent: KMail/1.9.1 Cc: Jim Ingham , gdb-patches@sources.redhat.com References: <17782.41205.881283.845357@kahikatea.snap.net.nz> <200612220923.22655.ghost@cs.msu.su> <17803.32581.121106.753961@kahikatea.snap.net.nz> In-Reply-To: <17803.32581.121106.753961@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612221030.09085.ghost@cs.msu.su> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00307.txt.bz2 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