diff options
author | Jim Blandy <jimb@codesourcery.com> | 2007-10-12 20:14:57 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2007-10-12 20:14:57 +0000 |
commit | f51038104033b0f609c512cd6c58cbc625ed6809 (patch) | |
tree | 21ce5499f2c7be2403412521fb294b40a02b2fc4 /gdb/serial.h | |
parent | 5b65b97ee46fa650a4a708fc951d803070c9f471 (diff) | |
download | gdb-f51038104033b0f609c512cd6c58cbc625ed6809.tar.gz |
* 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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/serial.h b/gdb/serial.h index 1fc502b670e..426042999ac 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. */ |