delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/07/22/12:06:41

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=Lm5UllO87aePMMQCq54AgihueW+Mq3Jp6hX6UFAgLTvfoh72xm8wD
3/UTwXbnXIrA9UkJXLniRS1o7frwySCwvqdq/IvXtoHMMmqPxZTE0H9Cltg8HAcx
EXWtcqyshP1Xdy+oXnfK0fbJpa4/+1uFQl9WMJzPVIG6Qy9gjgxUpw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=FSVS6A5ZEKIMGWNmR2b9jT0pzgE=; b=cd3yGW43M7twD/zCEGOZ4fLe7OoT
IdIgmv/SB9jPW1/EIo6IDRWTHeSS+TRoBmygnG9Rig3ik8savYGZrRmbWAq+wwBC
uBPxLJfxoAeOy3YhizODkjyh1NgqpyUhakZdHzPTLdrHGK2L6j1yHlrb2OWylsec
HZ8wPMLie3O8tIA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_05,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 22 Jul 2015 18:06:23 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.2.0-0.2
Message-ID: <20150722160623.GM3864@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <announce DOT 20150722151440 DOT GK3864 AT calimero DOT vinschen DOT de> <55AFB7BE DOT 9040307 AT cs DOT umass DOT edu>
MIME-Version: 1.0
In-Reply-To: <55AFB7BE.9040307@cs.umass.edu>
User-Agent: Mutt/1.5.23 (2014-03-12)

--Q5Q2TEEGbX9oWZOX
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jul 22 11:33, Eliot Moss wrote:
> On 7/22/2015 11:14 AM, Corinna Vinschen wrote:
>=20
> >   NEW:  sigsetjmp and siglongjmp were only implemented as macros so far.
> >   POSIX requires functions longjmp and siglongjmp to exist.  2.2.0-0.2
> >   adds sigsetjmp and siglongjmp functions.
> >
> >   2.2.0 comes with four new functions:  getcontext, setcontext,
> >   makecontext and swapcontext.
>=20
> So I am wondering if signal handlers now have access to the full context,
> including register values.  There was at one time a desire to port Jikes =
RVM,
> a research Java Virtual Machine, to cygwin, to get it running under Windo=
ws.
> Lack of ability to obtain and modify the ucontext in a signal handler was
> the sticking point.  (It was needed in the case of, say, a null pointer
> exception, to fake up the throwing of the Java exception when the signal
> handler returns.)

The full ucontext is available to signal handlers since Cygwin 2.0.4 if
sigaction is called with the SA_SIGINFO flag set, courtesy of Jon
Turney's efforts.

New in 2.2.0 is only the matching implementation of the aforementioned
functions.

Please note that the ucontext_t and mcontext_t types are platform
specific.  The mcontext_t type reflects the Windows CONTEXT type more
than the Linux mcontext_t type.

For the ucontext_t type see /usr/include/sys/ucontext.h
For the mcontext_t type see /usr/include/cygwin/signal.h


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--Q5Q2TEEGbX9oWZOX
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVr79/AAoJEPU2Bp2uRE+gyZ8QAJ33auU8KlJn99xr0F3NCvwU
SI29fsDClWr3lqaSlzwX0ri1/3pU/WwbqYUMnuBsOSH9b8e6bnUJlKR8IbEN1Bae
96rmJvFltGzJmdLhIF5TGhi98Tuq6xweACzXvn4GCQ4obr3bFMEu5XXcOOFkzPfK
SZ6vQKuptWhF8kLKqVH4k8IL7qv6JA4LClWvJvsVoUizVJgBbGkLVHE+0iactk4/
M4LRXb5K5Fyfxz64Ld3MSg2Acg3u7J1WiCxFSbCPadC9M68nX/dd1gF2UV1CgHMW
k7b3gY1REonfDpEz/GJPqHqjiy4unVAPpT+7A1+agrRfDvGgf2G0kZTsENUQ5MP5
MGB65RCcXDwMJDu+74t+IUMR3jIyWrwvywXj22Cl/qA3Y7GHVfmACxPAxPledNDA
t6SqVgzcM9CiP8tPGi+w2McYmyd8TU3BuiOJ53+ykx81TjAuZKc1E83NAq6nOVfo
+j3KKTykMxdpSiF4uGttFbC9KD0mJW9jEJpSOlbAxoHsytRqprL0Kc8Oa1zFJiDw
wqm9S7gzxJh5g5BJHr8x6pKECSkzQdPnPAqUVfxKV0636LVOXvZ/zbPASxEmIzlt
95xJd8S/4l4fyRhwSSa5PJapnMZbzDjjLbPlGG+rNYz/5M4GHohC05wOOi/SuZ4t
ktdrF6nV6APcmVDU9fvx
=HONC
-----END PGP SIGNATURE-----

--Q5Q2TEEGbX9oWZOX--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019