From: Jim Kingdon Date: Wed, 9 Jun 1993 00:41:06 +0000 (+0000) Subject: add comment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf3b8abd19272a3942e5d64552f6068d98d255fc;p=binutils-gdb.git add comment --- diff --git a/gdb/serial.c b/gdb/serial.c index e5ccf1d18e1..0e5a064b253 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -122,6 +122,21 @@ serial_close(scb) } #if 0 +/* +The connect command is #if 0 because I hadn't thought of an elegant +way to wait for I/O on two serial_t's simultaneously. Two solutions +came to mind: + + 1) Fork, and have have one fork handle the to user direction, + and have the other hand the to target direction. This + obviously won't cut it for MSDOS. + + 2) Use something like select. This assumes that stdin and + the target side can both be waited on via the same + mechanism. This may not be true for DOS, if GDB is + talking to the target via a TCP socket. +-grossman, 8 Jun 93 +*/ /* Connect the user directly to the remote system. This command acts just like the 'cu' or 'tip' command. Use ~. or ~^D to break out. */