This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug remote/17028] GDB+GDBserver hangs on Windows waiting for stop event since target-async on by default


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]