From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1143 invoked by alias); 24 Oct 2006 09:52:52 -0000 Received: (qmail 1135 invoked by uid 22791); 24 Oct 2006 09:52:51 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.235) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 24 Oct 2006 09:52:50 +0000 Received: by wx-out-0506.google.com with SMTP id s19so2544067wxc for ; Tue, 24 Oct 2006 02:52:48 -0700 (PDT) Received: by 10.70.125.11 with SMTP id x11mr8843493wxc; Tue, 24 Oct 2006 02:52:48 -0700 (PDT) Received: by 10.70.12.9 with HTTP; Tue, 24 Oct 2006 02:52:48 -0700 (PDT) Message-ID: Date: Tue, 24 Oct 2006 09:52:00 -0000 From: "Rob Quill" To: "Eli Zaretskii" Subject: Re: Command File Scope Checking Cc: gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061023202001.GA5472@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00225.txt.bz2 On 24/10/06, Eli Zaretskii wrote: > > Date: Mon, 23 Oct 2006 22:08:19 +0100 > > From: "Rob Quill" > > > > But if I am stepping through the code, and a variable goes out of > > scope, how do you suggest I go about dealing with this? > > Why do you need to ``deal'' with that? I guess I don't understand > your problem, because I don't see any reason to care about such a > situation: at most, GDB will print an error message. > > Can you show a small GDB script similar to what you use, and tell what > happens when a variable goes out of scope and how does that interfere > with the script? I suppose you're right actually. Really I need to gert an implementation together and see how it goes before I worry about these problems. Thanks for your help, I'll keep yolu updated on how it goes. Thanks, Rob