summaryrefslogtreecommitdiff
path: root/gdb/serial.h
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-10-12 04:37:53 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-10-12 04:37:53 +0000
commita53c440bf2c42802dc25fb9fa62f0f5dc196b399 (patch)
treec529861a454a8200807cbb62af394c2952248e00 /gdb/serial.h
parentf4e2ab8d6023f442c422f4f883c9c96f0106190f (diff)
downloadgdb-a53c440bf2c42802dc25fb9fa62f0f5dc196b399.tar.gz
import gdb-1999-10-11 snapshot
Diffstat (limited to 'gdb/serial.h')
-rw-r--r--gdb/serial.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/serial.h b/gdb/serial.h
index 11554d789c1..4b2c1f37ecd 100644
--- a/gdb/serial.h
+++ b/gdb/serial.h
@@ -54,14 +54,16 @@ extern void serial_un_fdopen (serial_t scb);
#define SERIAL_UN_FDOPEN(SERIAL_T) serial_un_fdopen ((SERIAL_T))
/* Read one char from the serial device with TIMEOUT seconds to wait
- or -1 to wait forever. Use timeout of 0 to effect a poll. Returns
- unsigned char if ok, else one of the following codes. Note that
- all error return-codes are guaranteed to be < 0. */
+ or -1 to wait forever. Use timeout of 0 to effect a poll.
+ Infinite waits are not permitted. Returns unsigned char if ok, else
+ one of the following codes. Note that all error return-codes are
+ guaranteed to be < 0. */
enum serial_rc {
SERIAL_ERROR = -1, /* General error. */
- SERIAL_TIMEOUT = -2, /* Timeout during read. ui_loop_hook() can,
- unfortunatly, force this to be returned. */
+ SERIAL_TIMEOUT = -2, /* Timeout or data-not-ready during read.
+ Unfortunatly, through ui_loop_hook(), this
+ can also be a QUIT indication. */
SERIAL_EOF = -3 /* General end-of-file or remote target
connection closed, indication. Includes
things like the line dropping dead. */