aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2007-10-12 20:14:57 +0000
committerJim Blandy <jimb@codesourcery.com>2007-10-12 20:14:57 +0000
commitd41ebd5d4581711edf913325b602d70dbf98bc51 (patch)
treeb5e47739d34026984b6f9824cbdb68006913b71b /gdb/serial.h
parente03748586c49e8ad61ee2e4103668eb4ba3fc0e3 (diff)
downloadgdb-d41ebd5d4581711edf913325b602d70dbf98bc51.zip
gdb-d41ebd5d4581711edf913325b602d70dbf98bc51.tar.gz
gdb-d41ebd5d4581711edf913325b602d70dbf98bc51.tar.bz2
* serial.h (struct serial_ops): Document read_prim to return zero
at EOF. * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when read_prim returns zero, not SERIAL_TIMEOUT.
Diffstat (limited to 'gdb/serial.h')
-rw-r--r--gdb/serial.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/serial.h b/gdb/serial.h
index 1fc502b..4260429 100644
--- a/gdb/serial.h
+++ b/gdb/serial.h
@@ -244,7 +244,7 @@ struct serial_ops
interesting. */
void (*async) (struct serial *scb, int async_p);
/* Perform a low-level read operation, reading (at most) COUNT
- bytes into SCB->BUF. */
+ bytes into SCB->BUF. Return zero at end of file. */
int (*read_prim)(struct serial *scb, size_t count);
/* Perform a low-level write operation, writing (at most) COUNT
bytes from BUF. */