From 9db58d3ab42b7f4fd3b4b4aa80bcb6404ce32b0d Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 29 Jan 1994 16:12:35 +0000 Subject: * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]: If the timeout is too big to fit in c_cc[VTIME], then do multiple reads to achieve the desired timeout. * serial.h (serial_t): Add field timeout_remaining. --- gdb/serial.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/serial.h') diff --git a/gdb/serial.h b/gdb/serial.h index 9b967b2..ed8b33a 100644 --- a/gdb/serial.h +++ b/gdb/serial.h @@ -33,6 +33,9 @@ struct _serial_t unsigned char *bufp; /* Current byte */ unsigned char buf[BUFSIZ]; /* Da buffer itself */ int current_timeout; /* (termio{s} only), last value of VTIME */ + /* ser-unix.c termio{,s} only, we still need to wait for this many more + seconds. */ + int timeout_remaining; }; typedef struct _serial_t *serial_t; -- cgit v1.1