From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18713 invoked by alias); 3 May 2012 15:05:51 -0000 Received: (qmail 18679 invoked by uid 22791); 3 May 2012 15:05:50 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL 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; Thu, 03 May 2012 15:05:24 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 808BC1C6797; Thu, 3 May 2012 11:05:23 -0400 (EDT) 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 Dcrswk0AmlNx; Thu, 3 May 2012 11:05:23 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 2D1CF1C657E; Thu, 3 May 2012 11:05:23 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 30895145616; Thu, 3 May 2012 08:05:12 -0700 (PDT) Date: Thu, 03 May 2012 15:05:00 -0000 From: Joel Brobecker To: Doug Evans Cc: Tristan Gingold , Tom Tromey , "gdb-patches@sourceware.org ml" Subject: Re: [RFA] Emit a warning for ineffective set VAR = EXP command Message-ID: <20120503150512.GI15555@adacore.com> References: <8781499A-A489-42D0-80B1-75136331DBDB@adacore.com> <87mx5x40uz.fsf@fleche.redhat.com> <05ADE46C-9093-4EE4-92A7-1232779DE5DC@adacore.com> <98CB5870-6AB6-40FA-B3A1-9AF8269B2909@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2012-05/txt/msg00088.txt.bz2 > Ok with one more change. > > -gdb_test "set language ada" ".*" "set language ada" > +gdb_test_no_output "set language ada" There is going to be some output, because this command is forcing a language which does not match the frame. > [I'm assuming the warning test has the desired affect. I don't know ada. :-)] Correct, it's a `='/`==' vs `:='/'=' confusion. In Ada, the comparison operator is "=". The user should have used the assignment operator which is ":=". The number of times I got bitten by this.... -- Joel