summaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-10-12 04:37:18 +0000
committerJason Molenda <jmolenda@apple.com>1999-10-12 04:37:18 +0000
commit1d4a27f03482886a54cff45afc0a4ad736b95682 (patch)
tree864fb1a9ffbf9e9d6ac05a76ce95b1bb6d64acd6 /gdb/serial.c
parent9fcdce6ddf6ad9aad821d2513e8d526708aa8cb5 (diff)
downloadgdb-1d4a27f03482886a54cff45afc0a4ad736b95682.tar.gz
import gdb-1999-10-11 snapshot
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index 99c5a54f832..2d73226761c 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -344,6 +344,11 @@ serial_readchar (serial_t scb, int timeout)
{
int ch;
+ /* FIXME: cagney/1999-10-11: Don't enable this check until the ASYNC
+ code is finished. */
+ if (0 && SERIAL_IS_ASYNC_P (scb) && timeout < 0)
+ internal_error ("serial_readchar: blocking read in async mode");
+
ch = scb->ops->readchar (scb, timeout);
if (serial_logfp != NULL)
{