make attaching to stopped processes work under windows

Christopher Faylor cgf-use-the-mailinglist-please@sourceware.org
Tue Mar 10 08:52:00 GMT 2009


On Mon, Mar 09, 2009 at 09:52:19PM +0100, Oswald Buddenhagen wrote:
>On Sun, Mar 08, 2009 at 03:32:33PM -0400, Christopher Faylor wrote:
>>On Tue, Mar 03, 2009 at 01:05:04PM +0100, Oswald Buddenhagen wrote:
>>>after all, why should it matter whether the process is suspended in the
>>>first place?
>>
>>Because you may be debugging a situation where you want precise control
>>over the process's suspend count.  The process may be suspended for
>>reasons other than the way that you are specifically using it.
>>
>>For instance, if this code was invoked at the wrong time on a cygwin
>>process it could screw up cygwin's signal handling which tries to (very
>>carefully) use SuspendThread/SetThreadContext/ResumeThread to send
>>signals when running in user code.
>
>the bad news is that gdb simply hangs without my patch, so your
>situation is rather hypothetical.

I assure you that Cygwin is not hypothetical.  It really does exist.  I
provided you with a specific example so that you would see that this
wasn't hypothetical.

cgf



More information about the Gdb-patches mailing list