PR 12848
[deliverable/binutils-gdb.git] / gdb / remote-mips.c
index a91b507490bc858f331c96e47d895ad30e943b91..7fbe76752175425a0f663c69c1c2c1dcdc23df90 100644 (file)
@@ -33,6 +33,7 @@
 #include "exceptions.h"
 #include "gdb_string.h"
 #include "gdb_stat.h"
+#include "gdb_usleep.h"
 #include "regcache.h"
 #include <ctype.h>
 #include "mips-tdep.h"
@@ -672,7 +673,7 @@ mips_readchar (int timeout)
   if (ch == SERIAL_TIMEOUT && timeout == -1)   /* Watchdog went off.  */
     {
       target_mourn_inferior ();
-      error (_("Watchdog has expired.  Target detached.\n"));
+      error (_("Watchdog has expired.  Target detached."));
     }
 
   if (ch == SERIAL_EOF)
@@ -1350,7 +1351,7 @@ mips_enter_debug (void)
   else                         /* Assume IDT monitor by default.  */
     mips_send_command ("db tty0\r", 0);
 
-  sleep (1);
+  gdb_usleep (1000000);
   serial_write (mips_desc, "\r", sizeof "\r" - 1);
 
   /* We don't need to absorb any spurious characters here, since the
This page took 0.023125 seconds and 4 git commands to generate.