From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8402 invoked by alias); 7 Feb 2006 10:59:35 -0000 Received: (qmail 8394 invoked by uid 22791); 7 Feb 2006 10:59:34 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-03.spheriq.net (HELO lon-del-03.spheriq.net) (195.46.50.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Feb 2006 10:59:33 +0000 Received: from lon-out-02.spheriq.net ([195.46.50.130]) by lon-del-03.spheriq.net with ESMTP id k17AxQVY024119 for ; Tue, 7 Feb 2006 10:59:26 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-02.spheriq.net with ESMTP id k17AxPcS020999 for ; Tue, 7 Feb 2006 10:59:25 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id k17AxNwU030321 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 7 Feb 2006 10:59:24 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E5DD2DA46; Tue, 7 Feb 2006 10:59:18 +0000 (GMT) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A57B847334; Tue, 7 Feb 2006 11:02:55 +0000 (GMT) Received: from [164.129.15.13] (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.5.8-GR) with ESMTP id CHE93110 (AUTH stubbsa); Tue, 7 Feb 2006 10:59:17 GMT Message-ID: <43E87D04.8070007@st.com> Date: Tue, 07 Feb 2006 10:59:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: $thread convenience variable References: <200602031410.42115.ghost@cs.msu.su> <43E35434.4070201@st.com> <20060206234859.GB523@nevyn.them.org> In-Reply-To: <20060206234859.GB523@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.01 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/msg00041.txt.bz2 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