From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16991 invoked by alias); 29 Nov 2005 13:03:50 -0000 Received: (qmail 16982 invoked by uid 22791); 29 Nov 2005 13:03:49 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-02.spheriq.net (HELO lon-del-02.spheriq.net) (195.46.50.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 Nov 2005 13:03:46 +0000 Received: from lon-out-03.spheriq.net ([195.46.50.131]) by lon-del-02.spheriq.net with ESMTP id jATD3hWd018617 for ; Tue, 29 Nov 2005 13:03:43 GMT Received: from lon-cus-02.spheriq.net (lon-cus-02.spheriq.net [195.46.50.38]) by lon-out-03.spheriq.net with ESMTP id jATD3g4x007370 for ; Tue, 29 Nov 2005 13:03:42 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-02.spheriq.net with ESMTP id jATD3SF4023970 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Tue, 29 Nov 2005 13:03:29 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 868B1DA45 for ; Tue, 29 Nov 2005 13:03:23 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id AB21F473E0; Tue, 29 Nov 2005 13:06:27 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3C96A759AE for ; Tue, 29 Nov 2005 13:06:27 +0000 (UTC) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D4008473DA for ; Tue, 29 Nov 2005 13:06:25 +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 CHA28078 (AUTH "andrew stubbs"); Tue, 29 Nov 2005 13:03:19 GMT Message-ID: <438C5115.80405@st.com> Date: Wed, 30 Nov 2005 01:58:00 -0000 From: Andrew STUBBS User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: Re: [PATCH] init-if-undefined command References: <437B3E56.3080306@st.com> In-Reply-To: <437B3E56.3080306@st.com> 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.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00500.txt.bz2 Andrew Stubbs wrote: > The attached patch adds a new CLI command named 'init-if-undefined'. > > This is essentially the same a 'set variable' (for convenience variables > only), but does not set the variable if it already has a value. > > It is useful in scripts whose values can be overridden, or as an > approximation of a statically initialised variable. Here's another one that ought to be easy to approve/reject. The docs have been approved and we have decided that this should be mentioned in the NEWS if/when it goes in, but nobody has said anything about the code. I don't think this one should be too much trouble because it does not change existing behaviour or do much out of keeping with other commands. Is it OK? Thanks Andrew Stubbs