From 6023c606989346efde39c5e336202df13e97957e Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Tue, 29 Mar 2011 15:49:51 +0000 Subject: [PATCH] Fix mingw compilation with --enable-targets=all. * remote-mips.c (gdb_usleep.h): Include header. (mips_enter_debug): Use gdb_usleep instead of sleep. --- gdb/ChangeLog | 6 ++++++ gdb/remote-mips.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 03885dd7beb..a2bc9a1fcd4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2011-03-29 Pierre Muller + + 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 Support resolution of STT_GNU_IFUNC via breakpoints. diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 8f96945318c..7fbe7675217 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 #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 -- 2.30.2