]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix mingw compilation with --enable-targets=all.
authorPierre Muller <muller@sourceware.org>
Tue, 29 Mar 2011 15:49:51 +0000 (15:49 +0000)
committerPierre Muller <muller@sourceware.org>
Tue, 29 Mar 2011 15:49:51 +0000 (15:49 +0000)
* remote-mips.c (gdb_usleep.h): Include header.
(mips_enter_debug): Use gdb_usleep instead of sleep.

gdb/ChangeLog
gdb/remote-mips.c

index 03885dd7beba70c3a3f8e370865b962630167913..a2bc9a1fcd498b66a7a9b75efcb76da0db6bb713 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       Fix mingw compilation with --enable-targets=all.
+       * remote-mips.c (gdb_usleep.h): Include header.
+       (mips_enter_debug): Use gdb_usleep instead of sleep.
+
 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Support resolution of STT_GNU_IFUNC via breakpoints.
index 8f96945318cb6b344c5375d956ca131361dfbd44..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"
@@ -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