From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin-patches@cygwin.com>
Cc: <gdb-patches@sourceware.org>
Subject: RE: [patch] fix spurious SIGSEGV faults under Cygwin
Date: Thu, 02 Feb 2006 17:30:00 -0000 [thread overview]
Message-ID: <009001c6281e$5907ef60$a501a8c0@CAM.ARTIMI.COM> (raw)
In-Reply-To: <43E23F92.37AF1CEA@dessent.net>
On 02 February 2006 17:21, Brian Dessent wrote:
> The main problem I see with this approach is the extra call to
> IsDebuggerPresent() every time a 'myfault' is created/destroyed, which
> potentially could be a lot. I'm presuming this is a relatively cheap
> call so it wasn't something I worried too much about. But then I didn't
> actually try to measure it.
>
> If it turns out that it's expensive, I was thinking that the inferior
> could maintain this information in some variable, and just communicate
> its location to gdb once at startup, then gdb could simply read that
> variable in the process' memory before deciding whether to handle the
> fault.
?????!
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?
Or IOW if a debugger is going to read a variable from its inferior that says if there's a debugger attached, well... it might as
well be #defined to 1 in the gdb source code, mightn't it?
cheers,
DaveK
--
Can't think of a witty .sigline today....
next prev parent reply other threads:[~2006-02-02 17:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 12:26 Brian Dessent
2006-02-02 16:00 ` Brian Dessent
2006-02-02 17:06 ` Christopher Faylor
2006-02-02 17:21 ` Brian Dessent
2006-02-02 17:30 ` Dave Korn [this message]
2006-02-02 17:38 ` Daniel Jacobowitz
2006-02-02 17:43 ` Dave Korn
2006-02-02 17:46 ` 'Daniel Jacobowitz'
2006-02-02 17:52 ` Dave Korn
2006-02-02 17:56 ` 'Daniel Jacobowitz'
2006-02-02 17:42 ` Brian Dessent
2006-02-02 17:47 ` Dave Korn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='009001c6281e$5907ef60$a501a8c0@CAM.ARTIMI.COM' \
--to=dave.korn@artimi.com \
--cc=cygwin-patches@cygwin.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox