From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16326 invoked by alias); 10 Jun 2007 20:54:06 -0000 Received: (qmail 16113 invoked by uid 22791); 10 Jun 2007 20:54:05 -0000 X-Spam-Check-By: sourceware.org Received: from py-out-1112.google.com (HELO py-out-1112.google.com) (64.233.166.178) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Jun 2007 20:54:02 +0000 Received: by py-out-1112.google.com with SMTP id a25so163091pyi for ; Sun, 10 Jun 2007 13:54:00 -0700 (PDT) Received: by 10.114.174.2 with SMTP id w2mr4814761wae.1181508840045; Sun, 10 Jun 2007 13:54:00 -0700 (PDT) Received: by 10.114.79.6 with HTTP; Sun, 10 Jun 2007 13:54:00 -0700 (PDT) Message-ID: Date: Sun, 10 Jun 2007 20:54:00 -0000 From: "Rob Quill" To: gdb@sourceware.org, gdb-patches@sourceware.org Subject: Scope Checking Patch MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: 2007-06/txt/msg00064.txt.bz2 Hi all, This is the first patch I have ever submitted to an open source project, so I'm a little bit unsure of the process. The patch adds the ability to check if a variable is in scope, as descibed here: http://sourceware.org/ml/gdb/2006-11/msg00149.html I have attached the diffs for the two files I've changed. However, I am seeing some regressions against the current cvs, which I can't understand, so I was wondering if a) the regressions happen for anyone esle? (which presumably it does), b) if anyone could offer any suggestions as to the cause, and c) give thier opinions on the patch. The patch allows the scope of constants, variables and variables in classes/structures, by using $in_scope(variable_name) as an expression, with value 1 if variable_name is in scope and 0 if it is not. Any help and thoughts you can offer is much appreciated. Thanks, Rob