From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18989 invoked by alias); 30 Nov 2009 19:06:29 -0000 Received: (qmail 18979 invoked by uid 22791); 30 Nov 2009 19:06:28 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Nov 2009 19:06:24 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 8A8A22BAC08; Mon, 30 Nov 2009 14:06:22 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MCv4M58KzRRk; Mon, 30 Nov 2009 14:06:22 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 586222BABB7; Mon, 30 Nov 2009 14:06:22 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 8D102F5889; Mon, 30 Nov 2009 11:06:19 -0800 (PST) Date: Mon, 30 Nov 2009 20:31:00 -0000 From: Joel Brobecker To: Michael Snyder Cc: Hui Zhu , "gdb@sourceware.org" Subject: Re: [RFC] Let "gcore" command accept a suffix argument Message-ID: <20091130190619.GJ4034@adacore.com> References: <4B11DA3C.3000203@vmware.com> <20091130162246.GE4034@adacore.com> <4B141157.3070709@vmware.com> <20091130185341.GI4034@adacore.com> <4B141469.5030402@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B141469.5030402@vmware.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2009-11/txt/msg00226.txt.bz2 > Would it be able to include the incr? "eval gcore foo.$a++"? I do not think so, not as suggested by Tom, I believe. The suggestion is to expand convenience variables, not evaluate full-fledged expressions. The issue with full-fledged expressions is that you have to recognize them and find where they start and end. But I think that this would not be a serious limitation in practice, since the above can be rewritten as: eval gcore foo.$a set $a = $a + 1 -- Joel