From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12037 invoked by alias); 3 Feb 2006 13:04:18 -0000 Received: (qmail 12028 invoked by uid 22791); 3 Feb 2006 13:04:18 -0000 X-Spam-Check-By: sourceware.org Received: from fra-del-03.spheriq.net (HELO fra-del-03.spheriq.net) (195.46.51.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Feb 2006 13:04:16 +0000 Received: from fra-out-03.spheriq.net (fra-out-03.spheriq.net [195.46.51.131]) by fra-del-03.spheriq.net with ESMTP id k13D4C7e021088 for ; Fri, 3 Feb 2006 13:04:12 GMT Received: from fra-cus-02.spheriq.net (fra-cus-02.spheriq.net [195.46.51.38]) by fra-out-03.spheriq.net with ESMTP id k13D4CXC021679 for ; Fri, 3 Feb 2006 13:04:12 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-02.spheriq.net with ESMTP id k13D4Ak1006616 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 3 Feb 2006 13:04:11 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 5484FDA42; Fri, 3 Feb 2006 13:04:06 +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 5963947380; Fri, 3 Feb 2006 13:07:41 +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 CHE69905 (AUTH stubbsa); Fri, 3 Feb 2006 13:04:05 GMT Message-ID: <43E35434.4070201@st.com> Date: Fri, 03 Feb 2006 13:04:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Vladimir Prus Cc: Eli Zaretskii , gdb@sources.redhat.com Subject: Re: $thread convenience variable References: <200602031410.42115.ghost@cs.msu.su> In-Reply-To: <200602031410.42115.ghost@cs.msu.su> Content-Type: text/plain; charset=KOI8-R; 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/msg00021.txt.bz2 Vladimir Prus wrote: > With it, the $thread variable will mean the last thread where we've stopped, > as opposed to the current one -- that is, does not change after "thread XXX" > command. This might be confusing to users, or might not. 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.) It would also not clutter 'show conv'. Just a thought. Andrew Stubbs