aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1994-07-18 22:35:33 +0000
committerKung Hsu <kung@cygnus>1994-07-18 22:35:33 +0000
commitb0a0ee5272ca85c492522ae2c4b1decf9dcae134 (patch)
treefef565b8bed6bb048d1e42571e37a4ac72d9b0b7
parent98f6da4f021216e9c0fb72eea732e25002bcbad9 (diff)
downloadgdb-b0a0ee5272ca85c492522ae2c4b1decf9dcae134.zip
gdb-b0a0ee5272ca85c492522ae2c4b1decf9dcae134.tar.gz
gdb-b0a0ee5272ca85c492522ae2c4b1decf9dcae134.tar.bz2
Modified Files:
remote-mips.c ChangeLog * remote-mips.c (mips_readchar): Fix a bug in checking <IDT> prompt.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote-mips.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9f66f88..791ebc3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 18 15:32:17 1994 Kung Hsu (kung@mexican.cygnus.com)
+
+ * remote-mips.c (mips_readchar): Fix a bug in checking <IDT>
+ prompt.
+
Mon Jul 18 14:26:35 1994 Stan Shebs (shebs@andros.cygnus.com)
* solib.c (look_for_base): Don't deref exec_bfd if NULL.
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 1ae7f92..4b4ad2e 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -338,6 +338,8 @@ mips_readchar (timeout)
static int state = 0;
static char nextstate[5] = { '<', 'I', 'D', 'T', '>' };
+ if (state == 5)
+ timeout = 1;
ch = SERIAL_READCHAR (mips_desc, timeout);
if (ch == SERIAL_EOF)
mips_error ("End of file from remote");