[PATCH] Fix debugger attach for threads
Thomas Pfaff
tpfaff@gmx.net
Fri Oct 31 21:11:00 GMT 2003
This patch allows a debugger to attach when an exception occurs in a
thread other than the mainthread.
I am not happy about the wait in handle_exceptions, but it works on my
machine. I think that a waitloop until the debugger is attached is
cleaner, but there must be a reason why the debbugging loop is
implemented this way.
Thomas
003-10-31 Thomas Pfaff <tpfaff@gmx.net>
* exceptions.cc (try_to_debug): Suspend/resume all threads when
a debugger is attaching.
(handle_exceptions): Give debugger CPU time to attach.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: thread_try_to_debug.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031031/498cbbae/attachment.ksh>
More information about the Cygwin-patches
mailing list