From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6380 invoked by alias); 31 Jul 2007 10:14:04 -0000 Received: (qmail 6372 invoked by uid 22791); 31 Jul 2007 10:14:03 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 31 Jul 2007 10:14:01 +0000 Received: from kahikatea.snap.net.nz (73.63.255.123.dynamic.snap.net.nz [123.255.63.73]) by viper.snap.net.nz (Postfix) with ESMTP id B2E973DA11C; Tue, 31 Jul 2007 22:13:57 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 88FAD8FC6D; Tue, 31 Jul 2007 22:13:51 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18095.2910.424341.462444@kahikatea.snap.net.nz> Date: Tue, 31 Jul 2007 10:29:00 -0000 To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: Type information in -data-evaluate-expression In-Reply-To: References: <200707301540.59361.apoenitz@trolltech.com> <18094.60992.646812.570359@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.1.50.3 X-IsSubscribed: yes 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: 2007-07/txt/msg00326.txt.bz2 > > If execution is at the arrow, the user might place the mouse over the > > first occurrence of i and expect the value 1 to be displayed. However, > > since -data-evaluate-expression evaluates relative to the current line, 10 > > would actually be displayed. > > Not that it works with variable objects, anyway. OTOH, I think > expanding -var-create so that it takes "context line" where expression > is to be evaluated should be rather simple. I think that was what we discussed last time. That, and the fact that you could expand structures within the tooltip if they were created from variable objects: This is what Jim Ingham said: Yup, that's basically what Xcode does. The guy that did is actually has a pretty cool way of posting the sub-elements in the tooltips. I can't really describe it - you have to see it - but it's very convenient. -- Nick http://www.inet.net.nz/~nickrob