This is the mail archive of the
mailing list for the GDB project.
Re: [RFC] Improve testsuite for poor expect behavior
> > > +#ifdef _WIN32
> > > + /* A Cygwin ssh session may not look like a terminal to the Windows
> > > + runtime; ensure unbuffered output. */
> > > + setvbuf (stdout, NULL, _IONBF, BUFSIZ);
> > > + setvbuf (stderr, NULL, _IONBF, BUFSIZ);
> > > +#endif
> > We have the exact same piece of code in our tree as well. We chose
> > to put it in event-top, but it doesn't really matter. I'd really
> > like to see at least this part being committed.
> Did someone check that switching it to binary will not interfere with
> Emacs 23 GDB interface on Windows?
Not sure about your specific question, but the piece I quoted only
unbuffers stdout and stderr, so that output sent on both file handles
do not get printed out of order (in other words, if we print on
stderr first, and then stdout, we want the output to be in that
order - with buffering, we observed that stderr output was printed
after stdout output, even if the actual call to printf was in a