From: Daniel Jacobowitz <drow@false.org>
To: Pierre Muller <muller@ics.u-strasbg.fr>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp pattern problem
Date: Wed, 07 Nov 2007 15:11:00 -0000 [thread overview]
Message-ID: <20071107151120.GC20821@caradoc.them.org> (raw)
In-Reply-To: <000001c8214b$c2b4ed00$481ec700$@u-strasbg.fr>
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
next prev parent reply other threads:[~2007-11-07 15:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-07 14:37 Pierre Muller
2007-11-07 15:11 ` Daniel Jacobowitz [this message]
2007-11-08 9:50 ` Pierre Muller
2007-11-08 10:43 ` Andreas Schwab
2007-11-08 10:55 ` Pierre Muller
2007-11-08 12:38 ` 'Daniel Jacobowitz'
2007-11-08 13:31 ` Pierre Muller
2007-11-08 13:42 ` 'Daniel Jacobowitz'
2007-11-08 14:14 ` Pierre Muller
2007-11-08 14:27 ` 'Daniel Jacobowitz'
2007-11-08 14:51 ` Pierre Muller
2007-11-08 15:00 ` 'Daniel Jacobowitz'
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071107151120.GC20821@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=muller@ics.u-strasbg.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox