This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
RE: [patch] fix spurious SIGSEGV faults under Cygwin
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Daniel Jacobowitz'" <drow at false dot org>
- Cc: <cygwin-patches at cygwin dot com>, <gdb-patches at sourceware dot org>
- Date: Thu, 2 Feb 2006 17:43:51 -0000
- Subject: RE: [patch] fix spurious SIGSEGV faults under Cygwin
On 02 February 2006 17:38, Daniel Jacobowitz wrote:
> On Thu, Feb 02, 2006 at 05:30:23PM -0000, Dave Korn wrote:
>> ?????!
>>
>> I'm having a conceptual difficulty here: Under what circumstances
>> would you expect there *not* to be a debugger attached to the inferior
>> to which the debugger is attached? That's a bit zen, isn't it?
>
> You missed that half the patch was for Cygwin - you even sent your reply
> to cygwin-patches.
Nope, I didn't miss that bit. I can see the point in the cygwin side of the patch, for when there _isn't_ a debugger attached,
and the cygwin library has to know whether the exception will be handled by a debugger or whether it has to wrap the access in a
SEH.
What I can't see is any point in gdb reading a variable from the inferior that tells gdb if there is a debugger attached to the
inferior, because I can't see how gdb could read that variable except by attaching to the inferior, at which point the value in the
variable should always be 'true', shouldn't it?
cheers,
DaveK
--
Can't think of a witty .sigline today....