From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29034 invoked by alias); 7 Nov 2007 15:11:27 -0000 Received: (qmail 29026 invoked by uid 22791); 7 Nov 2007 15:11:27 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 07 Nov 2007 15:11:23 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id D63E098353; Wed, 7 Nov 2007 15:11:21 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id AE71C9833F; Wed, 7 Nov 2007 15:11:21 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1IpmYq-0005WA-OK; Wed, 07 Nov 2007 10:11:20 -0500 Date: Wed, 07 Nov 2007 15:11:00 -0000 From: Daniel Jacobowitz To: Pierre Muller Cc: gdb-patches@sourceware.org Subject: Re: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp pattern problem Message-ID: <20071107151120.GC20821@caradoc.them.org> Mail-Followup-To: Pierre Muller , gdb-patches@sourceware.org References: <000001c8214b$c2b4ed00$481ec700$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c8214b$c2b4ed00$481ec700$@u-strasbg.fr> User-Agent: Mutt/1.5.15 (2007-04-09) 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: 2007-11/txt/msg00132.txt.bz2 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 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\]+" and that's 16. -- Daniel Jacobowitz CodeSourcery