From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7813 invoked by alias); 28 Jul 2008 03:18:58 -0000 Received: (qmail 7805 invoked by uid 22791); 28 Jul 2008 03:18:58 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout5.012.net.il (HELO mtaout5.012.net.il) (84.95.2.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Jul 2008 03:18:38 +0000 Received: from HOME-C4E4A596F7 ([77.126.67.244]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K4P001K855019T2@i_mtaout5.012.net.il> for gdb-patches@sourceware.org; Mon, 28 Jul 2008 06:17:25 +0300 (IDT) Date: Mon, 28 Jul 2008 03:18:00 -0000 From: Eli Zaretskii Subject: Re: New scope checking patch In-reply-to: X-012-Sender: halo1@inter.net.il To: Rob Quill Cc: jimb@red-bean.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: References: <8f2776cb0801301557t2e265b62u56d6df7cbcec1c84@mail.gmail.com> 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: 2008-07/txt/msg00513.txt.bz2 > Date: Mon, 28 Jul 2008 00:45:03 +0100 > From: "Rob Quill" > Cc: "Jim Blandy" , gdb-patches@sourceware.org > > This patch (like the remove deprecated_set_value_type one) has been a > long time coming. Please find attached what I believe should be the > final version of this patch. Thanks. > --- gdb/NEWS 18 Jul 2008 20:55:32 -0000 1.282 > +++ gdb/NEWS 27 Jul 2008 23:02:48 -0000 > @@ -3,6 +3,12 @@ > > *** Changes since GDB 6.8 > > +* New expression type > + > +$in_scope(...) > + The value of this expression is 1 if the variable within the > + parentheses is within the current scope, 0 otherwise. This is okay. > +provided that you check if it is in scope before you test it's value. The operator ^^^^ "its" Otherwise, okay.