From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22185 invoked by alias); 31 Jul 2007 09:40:50 -0000 Received: (qmail 22174 invoked by uid 22791); 31 Jul 2007 09:40:50 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 31 Jul 2007 09:40:47 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IFoDb-00048H-35 for gdb-patches@sources.redhat.com; Tue, 31 Jul 2007 11:40:43 +0200 Received: from 241-246.umostel.ru ([77.246.241.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Jul 2007 11:40:43 +0200 Received: from ghost by 241-246.umostel.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Jul 2007 11:40:43 +0200 To: gdb-patches@sources.redhat.com From: Vladimir Prus Subject: Re: Type information in -data-evaluate-expression Date: Tue, 31 Jul 2007 10:14:00 -0000 Message-ID: References: <200707301540.59361.apoenitz@trolltech.com> <18094.60992.646812.570359@kahikatea.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.4 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/msg00325.txt.bz2 Nick Roberts wrote: > Here's another example where tooltips using -data-evaluate-expression > might not work: > > int i; > i = 1; > { > int i; > i = 10; > => i++; > } > > 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. - Volodya