aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>1998-02-12 21:28:52 +0000
committerFrank Ch. Eigler <fche@redhat.com>1998-02-12 21:28:52 +0000
commita469b84c3b1b3fc3c82c0b62fa79bbea5eafa947 (patch)
treebbf2631704f608cfb7114e746428f1af6c0edae5 /gdb/remote-mips.c
parent8642a20358ee146897b0573341213bccba0774b3 (diff)
downloadgdb-a469b84c3b1b3fc3c82c0b62fa79bbea5eafa947.zip
gdb-a469b84c3b1b3fc3c82c0b62fa79bbea5eafa947.tar.gz
gdb-a469b84c3b1b3fc3c82c0b62fa79bbea5eafa947.tar.bz2
* Changed MIPS monitor interface code to be tolerant of slightly
different IDT/sim 6.0 behavior. Extra time and laxness is alloted for monitor entry and exit.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 34a1019..0d0d5f9 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -1346,6 +1346,7 @@ mips_enter_debug ()
else /* assume IDT monitor by default */
mips_send_command ("db tty0\r", 0);
+ sleep(1);
SERIAL_WRITE (mips_desc, "\r", sizeof "\r" - 1);
/* We don't need to absorb any spurious characters here, since the
@@ -1385,18 +1386,6 @@ mips_exit_debug ()
mips_request ('x', (unsigned int) 0, (unsigned int) 0, &err,
mips_receive_wait, NULL);
- if (mips_monitor == MON_IDT && !mips_expect ("Exiting remote debug"))
- return -1;
-
- if (mips_monitor == MON_DDB)
- {
- if (!mips_expect ("\n"))
- return -1;
- }
- else
- if (!mips_expect ("\r\n"))
- return -1;
-
if (!mips_expect (mips_monitor_prompt))
return -1;