Subject: Re: SIGTRAP for traced processes and COMPAT_MACH
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 12/01/2003 13:51:09
Jaromir Dolecek <jdolecek@netbsd.org> wrote:

> No, this should not be checked in.
> 
> Why you don't provide COMPAT_MACH specific sendsig function,
> which would take care to send exception instead of signal if appropriate?
> Then everything would Just Work without COMPAT_MACH-specific
> tweaks in MI (native) path.

I commented on that topic in another mail: it won't work because sendsig
is only reached when the signal is unmasked and catched (ie: a signal
handler is installed).

Darwin's softsignal facility turns any unmasked signal into a Mach
exception, regardless if it a signal handler is installed or not for
this signal.

-- 
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.
manu@netbsd.org