This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/mingw32] stdin redirection
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jerome Guitton <guitton at adacore dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 19 Apr 2007 08:26:37 -0400
- Subject: Re: [RFA/mingw32] stdin redirection
- References: <20070419122008.GA27914@adacore.com>
On Thu, Apr 19, 2007 at 02:20:08PM +0200, Jerome Guitton wrote:
> + if (GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_DISK)
Hey neat, I didn't know that was there.
> + SetEvent (state->read_event);
> + continue;
> +
> + /* Delay 10ms before checking again, but allow the stop event
> + to wake us. */
> + if (WaitForSingleObject (state->stop_select, 10) == WAIT_OBJECT_0)
> + continue;
> +
> + goto retry;
I assume you meant to delete the code at the bottom and the retry
label. OK with that change.
--
Daniel Jacobowitz
CodeSourcery