From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8736 invoked by alias); 8 Nov 2007 09:50:09 -0000 Received: (qmail 8727 invoked by uid 22791); 8 Nov 2007 09:50:08 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Nov 2007 09:50:06 +0000 Received: from ICSMULLER (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id AA96A187031; Thu, 8 Nov 2007 10:54:16 +0100 (CET) From: "Pierre Muller" To: "'Daniel Jacobowitz'" Cc: References: <000001c8214b$c2b4ed00$481ec700$@u-strasbg.fr> <20071107151120.GC20821@caradoc.them.org> In-Reply-To: <20071107151120.GC20821@caradoc.them.org> Subject: RE: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp pattern problem Date: Thu, 08 Nov 2007 09:50:00 -0000 Message-ID: <002f01c821ec$ba48f0c0$2edad240$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us 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: 2007-11/txt/msg00158.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] On Behalf Of Daniel Jacobowitz > Sent: Wednesday, November 07, 2007 4:11 PM > To: Pierre Muller > Cc: gdb-patches@sourceware.org > Subject: Re: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp > pattern problem > > On Wed, Nov 07, 2007 at 03:37:45PM +0100, Pierre Muller wrote: > > Even this simple test fails: > > > > gdb_test "print {0, 0, 0, 0}" ".* =) \\{(0, ){3}(0\\}.*" "test > array" > > > > I am really wondering if this pattern repetition > > is working at all... > > Perhaps TCL relies on the system regular expression library, and > Cygwin's does not support repetition operators? Anyway, the TCL > manual says they are supported, so I'm surprised by this. Maybe Chris > Faylor knows something about it. I doubt this as: if I run this: grep -E "[ni]{4}" gdb.log on Cygwin, I find all lines containing the word "running"... So the Cygwin system regular expression seems to support repetition operators in a way that would also match the list of int8 with different values. Do I understand correctly that this is really specific to Cygwin? > > I could correct the test, by putting explicitly the > > 16 patterns, which results in an horribly lengthy pattern, > > but I was unable to break it into pieces to have shorter source > lines. > > > > Any ideas on ways to split the pattern string sent to gdb_test > > over multiple lines are most welcomed. > > I'd use variables. > > set item "-?\[0-9\]+, " > set items "$item$item$item$item$item$item$item$item" > append items "$item$item$item$item$item$item$item-?\[0-9\]+" That's indeed much better already. But if this is really a bug in the Cygwin version of tcl/dejagnu/runtest, then it should be solved on that end. Would a patch removing the wrongly interpreted pattern (replacing it by something like Daniel just suggested) still be acceptable? Pierre