diff options
author | Pierre Muller <muller@sourceware.org> | 2011-03-29 15:49:51 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2011-03-29 15:49:51 +0000 |
commit | 6023c606989346efde39c5e336202df13e97957e (patch) | |
tree | e04e15a39950abc9a8ebd49693b2463e0b90a6f2 /gdb/remote-mips.c | |
parent | 75c1c785ac61f79188dde9923a90eb918ec11b33 (diff) | |
download | gdb-6023c606989346efde39c5e336202df13e97957e.zip gdb-6023c606989346efde39c5e336202df13e97957e.tar.gz gdb-6023c606989346efde39c5e336202df13e97957e.tar.bz2 |
Fix mingw compilation with --enable-targets=all.
* remote-mips.c (gdb_usleep.h): Include header.
(mips_enter_debug): Use gdb_usleep instead of sleep.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 8f96945..7fbe767 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -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 |