Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@sourceware.org>
To: Pedro Alves <pedro_alves@portugalmail.pt>,
	gdb-patches@sourceware.org, 	muller@ics.u-strasbg.fr,
	Eli Zaretskii <eliz@gnu.org>
Subject: Re: [RFC] win32-nat.c: Handle EXCEPTION_INVALID_HANDLE as SIGSYS
Date: Mon, 29 Oct 2007 08:25:00 -0000	[thread overview]
Message-ID: <20071029030708.GB18776@trixie.casa.cgf.cx> (raw)
In-Reply-To: <20071024193735.GG10943@caradoc.them.org>

On Wed, Oct 24, 2007 at 03:37:35PM -0400, Daniel Jacobowitz wrote:
>On Wed, Oct 24, 2007 at 09:15:51PM +0200, Eli Zaretskii wrote:
>> > Date: Wed, 24 Oct 2007 09:39:58 +0100
>> > From: "Pedro Alves" <pedro_alves@portugalmail.pt>
>> > Cc: gdb-patches@sourceware.org
>> > 
>> > Maybe we can take the oportunity to implement more generic Windows exceptions
>> > support, not just EXCEPTION_INVALID_HANDLE.
>> 
>> I think it's a good idea.  In my experience, any serious program that
>> wants to handle signals and exceptions on Windows cannot avoid
>> supporting a large number of important EXCEPTION_* exceptions, because
>> unlike on Posix platforms, most of them are not translated into SIG*
>> style signals, at least in native Windows programs (as opposed to
>> Cygwin).
>
>If whoever works on this is feeling ambitious, I would prefer a
>solution that is not too tightly linked to Windows.  I've worked with
>at least two different embedded developers this past year who were
>confused by the need to map platform-specific exceptions onto Unix
>signals.  An embedded PowerPC developer is likely to have a much
>better idea what's going on if we tell him that his code triggered
>a Machine Check Exception than if we report SIGBUS.
>
>Before we can add this to the remote protocol, the rest of GDB needs
>to have some notion more general than "it's a signal".

That makes sense to me too.  I suspect that even Cygwin could use this
if it was general enough.

cgf


  parent reply	other threads:[~2007-10-29  3:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-22 14:14 Pierre Muller
2007-10-22 21:15 ` Eli Zaretskii
2007-10-23 22:06 ` Christopher Faylor
2007-10-23 22:26   ` Daniel Jacobowitz
2007-10-24  5:21   ` Eli Zaretskii
2007-10-24  8:40     ` Pierre Muller
2007-10-24 19:07       ` Eli Zaretskii
2007-10-24 11:47     ` Pedro Alves
2007-10-24  8:13   ` Pierre Muller
2007-10-24  8:51     ` Pedro Alves
2007-10-24 19:19       ` Eli Zaretskii
2007-10-24 19:37         ` Mark Kettenis
2007-10-24 19:40         ` Daniel Jacobowitz
2007-10-24 20:15           ` Eli Zaretskii
2007-10-29  8:25           ` Christopher Faylor [this message]
2007-10-29  3:07       ` Christopher Faylor

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=20071029030708.GB18776@trixie.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@sourceware.org \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    --cc=pedro_alves@portugalmail.pt \
    /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