From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16737 invoked by alias); 16 Feb 2011 13:10:05 -0000 Received: (qmail 16701 invoked by uid 22791); 16 Feb 2011 13:10:04 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate6.uk.ibm.com (HELO mtagate6.uk.ibm.com) (194.196.100.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Feb 2011 13:09:59 +0000 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate6.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p1GD9ups011401 for ; Wed, 16 Feb 2011 13:09:56 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p1GDA2OY1257600 for ; Wed, 16 Feb 2011 13:10:02 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p1GD9u06008218 for ; Wed, 16 Feb 2011 06:09:56 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id p1GD9sJR008207; Wed, 16 Feb 2011 06:09:54 -0700 Message-Id: <201102161309.p1GD9sJR008207@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Wed, 16 Feb 2011 14:09:54 +0100 Subject: Re: [patch] OpenCL datatypes test fixes To: ken@linux.vnet.ibm.com (Ken Werner) Date: Wed, 16 Feb 2011 13:55:00 -0000 From: "Ulrich Weigand" Cc: schwab@redhat.com (Andreas Schwab), jan.kratochvil@redhat.com (Jan Kratochvil), gdb-patches@sourceware.org In-Reply-To: <201102161319.11247.ken@linux.vnet.ibm.com> from "Ken Werner" at Feb 16, 2011 01:19:11 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2011-02/txt/msg00367.txt.bz2 Ken Werner wrote: > On Wednesday, February 16, 2011 11:24:21 am Andreas Schwab wrote: > > Ken Werner writes: > > > On Tuesday, February 15, 2011 10:01:55 pm Ulrich Weigand wrote: > > > > This passes because "char \\\[2\\\]" matches (a substring of) the first > > output, but you really want to match the whole string "type = char [2]". > > > > +gdb_test "whatis c2" "type = char(2| \\\[2\\\])" > > Does this also mean: > gdb_test "whatis c2" "type = .*(char(2| \\\[2\\\]))" > as suggested by Jan? No, the implicit ".*" is only at the *beginning* of the match string, not somewhere in the middle, so that gdb_test "whatis c2" "type = char(2| \\\[2\\\])" is equivalent to gdb_test "whatis c2" ".*type = char(2| \\\[2\\\])" which is equivalent to gdb_test "whatis c2" "(.*type = char2|.*type = char \\\[2\\\])" if you prefer ... Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com