RE: [RFC] Improve testsuite for poor expect behavior

Pierre Muller
2009-06-16T23:29:14Z

Thanks, this is indeed very helpful
for mingw32 or djgpp target.
I simply added a line

set GDBFLAGS { -ex "set interactive on"}

at the end of site.exp in gdb/testsuite directory

Nevertheless, it only addresses part of
the purpose of my patch.
The problem of the extra '\r' generated by
text mode output is still not solved.
I will try to resubmit a much shorter patch
that just handles this without trying to
modify the executables.

Pierre

> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Joel Brobecker
> Envoyé : Tuesday, June 16, 2009 4:58 PM
> À : Pierre Muller
> Cc : gdb-patches@sourceware.org; 'Daniel Jacobowitz'
> Objet : Re: [RFC] Improve testsuite for poor expect behavior
>
> > > Yeah - we use that in two situations, one of them being our
> testsuite.
> > > I can resend if it helps.
> >
> > Yes, please. This would be very helpful to check if my solution
> > brings something more or if yours should be used.
>
> Here it is. I've extracted it from our tree, and the patch itself is
> pretty raw - needs testing and documentation, but it should allow you
> to see whether that helps or not in your case. I'll finish up the patch
> as soon as you confirm it's helping.
>
> --
> Joel