From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5835 invoked by alias); 6 Feb 2006 23:49:08 -0000 Received: (qmail 5826 invoked by uid 22791); 6 Feb 2006 23:49:07 -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; Mon, 06 Feb 2006 23:49:07 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F6G6N-0000AE-E5; Mon, 06 Feb 2006 18:48:59 -0500 Date: Mon, 06 Feb 2006 23:49:00 -0000 From: Daniel Jacobowitz To: Andrew STUBBS Cc: Vladimir Prus , Eli Zaretskii , gdb@sources.redhat.com Subject: Re: $thread convenience variable Message-ID: <20060206234859.GB523@nevyn.them.org> Mail-Followup-To: Andrew STUBBS , Vladimir Prus , Eli Zaretskii , gdb@sources.redhat.com References: <200602031410.42115.ghost@cs.msu.su> <43E35434.4070201@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43E35434.4070201@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/msg00038.txt.bz2 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. -- Daniel Jacobowitz CodeSourcery