summaryrefslogtreecommitdiff
path: root/gdb/serial.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-29 16:12:35 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-29 16:12:35 +0000
commit9db58d3ab42b7f4fd3b4b4aa80bcb6404ce32b0d (patch)
treedbff8100177f7e742fea96bed1564a324683d0b1 /gdb/serial.h
parentf28c6e3813995dcd511ab74f41bdacb6f53fa27d (diff)
downloadbinutils-9db58d3ab42b7f4fd3b4b4aa80bcb6404ce32b0d.tar.gz
binutils-9db58d3ab42b7f4fd3b4b4aa80bcb6404ce32b0d.tar.bz2
binutils-9db58d3ab42b7f4fd3b4b4aa80bcb6404ce32b0d.zip
* 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.
Diffstat (limited to 'gdb/serial.h')
-rw-r--r--gdb/serial.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/serial.h b/gdb/serial.h
index 9b967b2e238..ed8b33ae6dc 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;