diff options
author | Stu Grossman <grossman@cygnus> | 1992-10-19 23:40:36 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-10-19 23:40:36 +0000 |
commit | 5a6242dddde4292bf2cd376372bc0f7a0f9b9cc5 (patch) | |
tree | 00629c7fe31fe6cfea9c23c7ebdc2dbcb7f9c2ad /gdb/remote-hms.c | |
parent | d95eb93075be55937407bb52e9081468aa12494a (diff) | |
download | gdb-5a6242dddde4292bf2cd376372bc0f7a0f9b9cc5.zip gdb-5a6242dddde4292bf2cd376372bc0f7a0f9b9cc5.tar.gz gdb-5a6242dddde4292bf2cd376372bc0f7a0f9b9cc5.tar.bz2 |
* remote-hms.c, ser-go32.c, serial.h: Change from
serial_timedreadchar() to new serial_readchar().
Diffstat (limited to 'gdb/remote-hms.c')
-rw-r--r-- | gdb/remote-hms.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/remote-hms.c b/gdb/remote-hms.c index e5f1f02..cbe4748 100644 --- a/gdb/remote-hms.c +++ b/gdb/remote-hms.c @@ -251,11 +251,10 @@ int check_open() static int readchar () { - int ok; int buf; - buf = serial_timedreadchar(timeout, &ok); + buf = serial_readchar(timeout); - if (!ok) + if (buf < 0) error ("Timeout reading from remote system."); if (!quiet) @@ -267,10 +266,9 @@ readchar () static int readchar_nofail () { - int ok; int buf; - buf = serial_timedreadchar(timeout, &ok); - if (!ok) buf = 0; + buf = serial_readchar(timeout); + if (buf < 0) buf = 0; if (!quiet) printf("%c",buf); @@ -544,8 +542,8 @@ is_baudrate_right() while (1) { - serial_timedreadchar(timeout, &ok); - if (!ok) break; + ok = serial_readchar(timeout); + if (ok < 0) break; } hms_write("r",1); |