aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/remote-mips.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 657d1ba..1883756 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -1664,8 +1664,11 @@ pmon_wait (pid, status)
seems to be caused by a check on the number of arguments, and the
command length, within the monitor causing it to echo the command
as a bad packet. */
- mips_exit_debug ();
- mips_enter_debug ();
+ if (mips_monitor != MON_CAIRO)
+ {
+ mips_exit_debug ();
+ mips_enter_debug ();
+ }
/* Translate a MIPS waitstatus. We use constants here rather than WTERMSIG
and so on, because the constants we want here are determined by the