On Thu, Aug 12, 2010 at 10:37:18PM -0600, Tom Tromey wrote: > Roland> I don't really know the gdb code, but I'm surprised it really > Roland> has multiple different "serial" backends. > > 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.
Correct. Also, the abstraction layer is important on non-Unix systems; "everything is a file descriptor" works poorly on Windows :-) -- Daniel Jacobowitz CodeSourcery