From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18310 invoked by alias); 29 Jul 2008 20:31:59 -0000 Received: (qmail 18301 invoked by uid 22791); 29 Jul 2008 20:31:58 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 Jul 2008 20:31:41 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m6TKVVjN003084; Tue, 29 Jul 2008 16:31:31 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6TKVVQ1017263; Tue, 29 Jul 2008 16:31:31 -0400 Received: from opsy.redhat.com (vpn-10-116.bos.redhat.com [10.16.10.116]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6TKVUji026252; Tue, 29 Jul 2008 16:31:31 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 416F53784E5; Tue, 29 Jul 2008 14:31:22 -0600 (MDT) To: "Rob Quill" Cc: "Eli Zaretskii" , "Jim Blandy" , gdb-patches@sourceware.org Subject: Re: New scope checking patch References: <8f2776cb0801301557t2e265b62u56d6df7cbcec1c84@mail.gmail.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Tue, 29 Jul 2008 20:31:00 -0000 In-Reply-To: (Rob Quill's message of "Mon\, 28 Jul 2008 00\:45\:03 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2008-07/txt/msg00546.txt.bz2 >>>>> "Rob" == Rob Quill writes: Rob> 2008-07-27 Rob Quill Rob> Add $in_scope as a type of expression. This seems like a good candidate for an internal function. The syntax is nearly identical. The only difference is that, at the GCC Summit, we agreed that arguments to internal functions would be expressions. So, instead of $in_scope(x) you would have to write $in_scope("x"). Internal functions are only in the python repository right now. The patch consists of two parts: an internals-only part, and the part that exposes the functionality to the Python layer. I think we can submit the internals part as a separate patch. AFAIK the only reason we haven't is just that there's been no need for it outside the Python work. Tom