Re: MI testsuite to use PTY for inferior

Daniel Jacobowitz
2005-08-01T01:51:11Z

On Mon, Aug 01, 2005 at 11:25:03AM +1200, Nick Roberts wrote:
> > > More generally I think its wrong to force
> > > the frontend to separate the output. Currently, I get reasonable behaviour
> > > with Emacs without doing this and would always include interleaved output as a
> > > user option.
> >
> > Would it hurt you to stitch them back together, though? The fewer
> > interfaces we have to support, the better...
>
> I guess it would even be safer in cases where the inferior has similar output
> e.g debugging GDB itself. However, I thought there were systems where ptys

Yes, I agree.

> weren't available (w32?). Even if you can't run the testsuite, you might
> still want to run GDB there (actually, I thought FSF GDB *is* being ported to
> w32 - how is it tested?).

Yes. And, there, we are going to need a different solution. Probably,
we would declare applications that use the console IO routines directly
unsupported, and run other applications via a pipe, allowing GDB to
capture input and output separately. Lots of people are interested in
native Windows debugging - but not so many are interested in console
apps!

Speaking for CodeSourcery, we're only porting GDB to Windows _host_. So
it doesn't need much testing besides making sure the CLI works OK. And
you can run expect under Cygwin to test a mingw32 GDB, which I hadn't
thought about in my previous message. But we don't do that at the
moment.

--
Daniel Jacobowitz
CodeSourcery, LLC