This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug remote/17028] GDB+GDBserver hangs on Windows waiting for stop event since target-async on by default
- From: "brobecker at adacore dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 10 Jun 2014 06:27:24 +0000
- Subject: [Bug remote/17028] GDB+GDBserver hangs on Windows waiting for stop event since target-async on by default
- Auto-submitted: auto-generated
- References: <bug-17028-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17028
--- Comment #14 from brobecker at adacore dot com ---
> I think I found the race.
[...]
> This #if 0 seems to fix it for me:
>
> static void
> net_windows_wait_handle (struct serial *scb, HANDLE *read, HANDLE *except)
> {
> struct net_windows_state *state = scb->state;
> /* Start from a clean slate. */
> #if 0
> ResetEvent (state->base.read_event);
> ResetEvent (state->base.except_event);
> #endif
> ResetEvent (state->base.stop_select);
>
> I haven't thought through consequences, but seems quite promising.
Indeed! I had seen that piece of code and questionned it, but somehow
convinced myself that the reset was a necessary initialization and
that it was always run before the select...
--
You are receiving this mail because:
You are on the CC list for the bug.