This is the mail archive of the
mailing list for the Archer project.
Re: problems with v3
> I don't know this area well, but considering that ser-unix.c is just
> chock full of tty-related goo, I think it is probably important for
> something. My impression is that this API is not just used for target
> communication but also for manipulating gdb's own terminal.
Ah, I see.
> I've appended the patch I came up with. I have not tried it at all, but
> it should all be pretty obvious.
Yeah, that seems like it should be reasonable, i.e. more or less like what
I'd figured it would do if it didn't have all these different backends.
However, I think the test you probably want is !S_ISCHR.
I believe that /proc/ugdb as is stats as S_ISREG, not S_ISFIFO.
Actually, better yet, just make it !isatty (fd).
Another pseudodevice that also behaves more like a socket than
like a tty might be S_ISCHR, but only a tty isatty.