From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27322 invoked by alias); 3 May 2012 16:33:38 -0000 Received: (qmail 27296 invoked by uid 22791); 3 May 2012 16:33:34 -0000 X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-vb0-f41.google.com (HELO mail-vb0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 May 2012 16:33:21 +0000 Received: by vbbey12 with SMTP id ey12so1804539vbb.0 for ; Thu, 03 May 2012 09:33:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-system-of-record :x-gm-message-state; bh=yd/KK/g5fKiei528hEzO4DJ/dRZgoA2yl+ui233nibg=; b=RT8fW8oPozzaqMQQkmC+iqA+80RQfhTZb5zCcrs5FC2MkhROa//BcwRsFR7xQ7rTuS QfGFgTPkSGMT5ilrngqd2e1QXw9AZk9f8qrwMk8w7IuN61qXkBwKhN9jhimly+X0Lnvq b2giFV+UwB9MBvBQkcwyRgiinvVOoakn2Hlu5q+3NfyRoStSxqYr0v5t7d6ZbYnJhPE1 45nKssMaUEhxLU1eZTwuFsbGoZ+q54wEs1wHgvuBNrtNxIPKvXdszbuVC+/+N+O6xdT4 VPjF1ukeMlrY/j9D0KCnBiOC3OFOkEgdQWBUk1w/VibZTiUGblkmZ29xKEln4eEWf00V sr5A== Received: by 10.52.20.35 with SMTP id k3mr449926vde.44.1336062800778; Thu, 03 May 2012 09:33:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.20.35 with SMTP id k3mr449912vde.44.1336062800586; Thu, 03 May 2012 09:33:20 -0700 (PDT) Received: by 10.52.165.2 with HTTP; Thu, 3 May 2012 09:33:20 -0700 (PDT) In-Reply-To: <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> <20120503150512.GI15555@adacore.com> Date: Thu, 03 May 2012 16:33:00 -0000 Message-ID: Subject: Re: [RFA] Emit a warning for ineffective set VAR = EXP command From: Doug Evans To: Joel Brobecker Cc: Tristan Gingold , Tom Tromey , "gdb-patches@sourceware.org ml" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-Gm-Message-State: ALoCoQmEi+jBX/tDJAGIYXPdaucJ3zKYQJb7s8rHvMUdsAAvBiilQcNxYpNfZhVY4w6BT8lwsPsGBaCb7LIoEBNu7PHR/+rOhFhb777r0fGgKQfgLs3cq79d/OtJPumiU4M7zjr+jJeZJldWHfDU6XrcYarAflYqWQ== 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: 2012-05/txt/msg00093.txt.bz2 On Thu, May 3, 2012 at 8:05 AM, Joel Brobecker wrot= e: >> 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. Ah. >> [I'm assuming the warning test has the desired affect. =A0I don't know a= da. :-)] > > Correct, it's a `=3D'/`=3D=3D' vs `:=3D'/'=3D' confusion. In Ada, the com= parison > operator is "=3D". The user should have used the assignment operator which > is ":=3D". =A0The number of times I got bitten by this.... It's trivial to add tests for a few more languages. Whether it's worth it, I don't know. It may be worth it if only as an educational vehicle so people who don't know these other languages get exposed to them for this particular issue.