This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: gdb.base/charset.exp: tighten regexp for ^C
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 04 Jun 2004 16:55:26 -0500
- Subject: Re: RFA: gdb.base/charset.exp: tighten regexp for ^C
- References: <vt2ekovlwq2.fsf@zenia.home>
Jim Blandy <jimb@redhat.com> writes:
> The problem with the regexp for the clause that sends ^C is that it
> matches a prefix of the correct output. If expect sees GDB's output
> arrive in small chunks, then that clause can trigger even when GDB is
> behaving correctly. This happens on AIX.
>
> I didn't see any discussion in the archives of the sort of situations
> this clause was meant to handle. A different approach might be for
> the timeout clause to send a ^C the first time around, and then
> actually fail the second time around. Then the situation the clause
> the patch tweaks was meant to handle (now there's a nice noun clause)
> will be caught by the ordinary $gdb_prompt case.
Oh --- tested on powerpc-unknown-linux-gnu, powerpc-ibm-aix4.3.3.0,
and i686-pc-linux-gnu.