From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6015 invoked by alias); 30 Dec 2008 08:27:09 -0000 Received: (qmail 6007 invoked by uid 22791); 30 Dec 2008 08:27:08 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Dec 2008 08:26:33 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 828262A966F; Tue, 30 Dec 2008 03:26:31 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id i2tOLm7nsUSD; Tue, 30 Dec 2008 03:26:31 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id EBE062A95FD; Tue, 30 Dec 2008 03:26:30 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 4D38DE7ACD; Tue, 30 Dec 2008 12:26:23 +0400 (RET) Date: Tue, 30 Dec 2008 08:27:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: PR 7536 - ``set input-radix 1'' changes radix Message-ID: <20081230082623.GM4216@adacore.com> References: <200812290221.14557.pedro@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00457.txt.bz2 > I also looked at this bug a little, and I was wondering whether we > should fix this generically, for all parameters, by saving the > parameter's value and then restoring it if the setter function raises > an error. What do you think of that? It crossed my mind many times too. I didn't realize the various issues that Pedro raised, but it still seems doable. -- Joel