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 #5 from brobecker at adacore dot com ---
I am discovering quite a bit with this PR, and one of the things
I discovered is that we use a thread to perform select calls.
That might explains the racy nature of this bug, and why adding
traces ahead of the call to WaitForMultipleObjects seems to hide
the issue.  Putting some small traces in net_windows_wait_handle
seems to indicate that sometimes the answer comes back fast enough
that we don't need to start the select thread, while other times
we do, and it's completely random - we must be right around
the edge. It doesn't explain yet why turning target-async mode on
would make any difference.

-- 
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]