From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9045 invoked by alias); 27 Apr 2008 06:25:24 -0000 Received: (qmail 9022 invoked by uid 22791); 27 Apr 2008 06:25:24 -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; Sun, 27 Apr 2008 06:25:05 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Jq0Jq-000663-Bn for gdb@sources.redhat.com; Sun, 27 Apr 2008 06:25:02 +0000 Received: from 78.158.192.230 ([78.158.192.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Apr 2008 06:25:02 +0000 Received: from vladimir by 78.158.192.230 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Apr 2008 06:25:02 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: MI floating varobj of invalid value Date: Sun, 27 Apr 2008 21:46:00 -0000 Message-ID: References: <200804270127.48885.vladimir@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.5 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00227.txt.bz2 Eli Zaretskii wrote: >> From: Vladimir Prus >> Date: Sun, 27 Apr 2008 01:27:48 +0400 >> >> However, if frontend tries to create varobj for foo >> at the first stop, and 'foo' is not in scope, then varobj will not be created. > > Why is that? For no other reason than "implementation behaves this way". > Since a floating varobj's expression is re-parsed every > time, you should be able to delay parsing and not fail creation > because some of its terms are not in scope, right? Right, that's my reasoning. - Volodya