This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: gdb.base/charset.exp: tighten regexp for ^C


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]