Re: MI testsuite to use PTY for inferior

Bob Rossi
2005-08-01T11:32:58Z

On Sun, Jul 31, 2005 at 10:15:13PM -0400, Daniel Jacobowitz wrote:
> On Sun, Jul 31, 2005 at 10:05:25PM -0400, Bob Rossi wrote:
> > > > > - Remote targets that provide output currently aren't redirected onto
> > > > > the PTY; instead they'll appear interleaved, just like before.
> > > >
> > > > In this scenario, I'm guessing from the sound of it that GDB just hasn't
> > > > added support for this yet. So it's a GDB bug, right? I could look into
> > > > this if I had some direction.
> > >
> > > I don't know. What do you want it to do? GDB to set up a fake
> > > terminal and push output to it? Might make sense, might not, haven't
> > > thought about it.
> >
> > Why doesn't GDB open a pty and simply give the FE the name of the device
> > it can read the inferior I/O from? This would simplify a lot of things.
>
> Didn't we go through this already and decide it was better for the user
> to provide the TTY and tell GDB where to send the user? Just like we
> do now for set inferior-tty?

Well, the previous discussion was a little different, but if you don't
like the idea, that's fine.

> It wouldn't be a big stretch to make this go for remote targets; GDB
> would do the writing instead of the inferior. There'd be no input.
>
> For Windows, if someone cared to implement it, you could probably pass
> a pipe to GDB in some fashion. I do not know enough about Windows to
> know how, or care enough about native Windows use of MI to figure it
> out myself.

Yeah, so you think it would make sense to have GDB simply encode the
remote output into the GDB/MI output stream the way the documentation
says it should. That makes much more sense.

Is it as simple to do as it sounds?

Thanks,
Bob Rossi