This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp pattern problem
echo 'send_user "[regexp {[ni]{4}} {running}]\n"' | expect
as well as
echo 'send_user "[regexp "\[ni\]{4}" "running"]\n"' | expect
return 1...
So expect seems to work OK...
Pierre
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Andreas Schwab
> Sent: Thursday, November 08, 2007 11:44 AM
> To: Pierre Muller
> Cc: 'Daniel Jacobowitz'; gdb-patches@sourceware.org
> Subject: Re: [RFC] Trying to fix testsuite/gdb.arch/i386-sse.exp
> pattern problem
>
> "Pierre Muller" <muller@ics.u-strasbg.fr> writes:
>
> > I doubt this as:
> > if I run this:
> > grep -E "[ni]{4}" gdb.log
> > on Cygwin, I find all lines containing the word "running"...
>
> What do you get from this?
>
> $ echo 'send_user "[regexp {[ni]{4}} {running}]\n"' | expect
>
> Andreas.
>
> --
> Andreas Schwab, SuSE Labs, schwab@suse.de
> SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
> PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276
> 4ED5
> "And now for something completely different."