From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1702 invoked by alias); 8 Aug 2009 13:43:57 -0000 Received: (qmail 1694 invoked by uid 22791); 8 Aug 2009 13:43:56 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 08 Aug 2009 13:43:49 +0000 Received: (qmail 30290 invoked from network); 8 Aug 2009 13:43:48 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Aug 2009 13:43:48 -0000 From: Pedro Alves To: Tom Tromey Subject: Re: FYI: fix PR gdb/8869 Date: Sat, 08 Aug 2009 16:17:00 -0000 User-Agent: KMail/1.9.10 Cc: gdb-patches@sourceware.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908081443.59412.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2009-08/txt/msg00127.txt.bz2 On Saturday 08 August 2009 00:28:00, Tom Tromey wrote: > >>>>> "Tom" == Tom Tromey writes: > > Tom> Sigh. > Tom> I'll fix soon. > > Ok, here is an update to strip trailing whitespace. This time with some > tests. Thanks! > This is kind of ugly. Indeed. :-) > I did remember a problem with using a real enum for set language -- the > languages aren't all registered when _initialize_language is called. I think it would work to (re-)register the command in add_language instead, whenever a new language is added. -- Pedro Alves