From a469b84c3b1b3fc3c82c0b62fa79bbea5eafa947 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 12 Feb 1998 21:28:52 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 7 +++++++ gdb/remote-mips.c | 13 +------------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 44d69897595..41e6d3f9169 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Thu Feb 12 16:12:07 1998 Frank Ch. Eigler + + * remote-mips.c (mips_enter_debug): Sleep before sending CR to + monitor. + (mips_exit_debug): Accept any whitespace / verbiage before monitor + prompt reappears. + Thu Feb 12 18:25:42 1998 Andrew Cagney * d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 34a1019a6fb..0d0d5f93573 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; -- 2.30.2