From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28350 invoked by alias); 7 Feb 2006 19:31:48 -0000 Received: (qmail 28342 invoked by uid 22791); 7 Feb 2006 19:31:47 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 07 Feb 2006 19:31:47 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F6YYy-0007Wj-MW for gdb@sources.redhat.com; Tue, 07 Feb 2006 14:31:44 -0500 Date: Tue, 07 Feb 2006 19:31:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: $thread convenience variable Message-ID: <20060207193144.GA28511@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <200602031410.42115.ghost@cs.msu.su> <43E35434.4070201@st.com> <20060206234859.GB523@nevyn.them.org> <43E87D04.8070007@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43E87D04.8070007@st.com> User-Agent: Mutt/1.5.8i 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-02/txt/msg00053.txt.bz2 On Tue, Feb 07, 2006 at 10:57:08AM +0000, Andrew STUBBS wrote: > Daniel Jacobowitz wrote: > >On Fri, Feb 03, 2006 at 01:01:40PM +0000, Andrew STUBBS wrote: > >>It might be better to do this in cli-script.c in the same way as > >>$arg0-$arg9 and $argc. That way it would always be up to date and would > >>be read-only. > >> > >>Of course these substitutions currently only work within control > >>structures, such as if, while or user-defined commands. (Hmmm, a quick > >>test also shows they crash GDB if not used within a user-define.) > > > >Test case? I tried a couple places, it didn't crash. > > > > Just on the command line, not in a define: > > if 1 == 1 > echo $arg0 > end Easily fixed, will post. -- Daniel Jacobowitz CodeSourcery