X-Recipient: archive-cygwin@delorie.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:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=w/xO692tT7ripqg/
	rT/qA9y4n2u/6zH9aEEk0825iszreXCQ2p+NbmRFPp3fOnHWY7eq8EvSwW1CVkcc
	weKx5Bqt+Cqo7GIxFbOApp0lElReelytYjePZjfdAEb/cAtBrf5Q/rZOS8pWVe2g
	C1Nbwupr8EqkhTrE4AOGi02DMYY=
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:reply-to:subject:references:to:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=s5IxtWTfMm0uTE0QQoo/yt
	r/1QQ=; b=nPEp/EHFwGFOvBFdCXu3DT9T63EyHmMgidLUudDez3JQvasSGQ8+L3
	KRPVULSqOeSWubhFjLxXpEKXk90FfdpIEkI27c04zg+RZYxa0Ki42zPX9lpiNb+1
	uMXSOxNJn6zmRgzqJZALvFLxhgwcZJX9wRMNFrFahDYj0yek+1k9s=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: csmail.cs.umass.edu
Reply-To: moss@cs.umass.edu
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.2.0-0.2
References: <announce.20150722151440.GK3864@calimero.vinschen.de> <55AFB7BE.9040307@cs.umass.edu> <20150722160623.GM3864@calimero.vinschen.de>
To: cygwin@cygwin.com
From: Eliot Moss <moss@cs.umass.edu>
Message-ID: <55AFD103.1070302@cs.umass.edu>
Date: Wed, 22 Jul 2015 13:21:07 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
MIME-Version: 1.0
In-Reply-To: <20150722160623.GM3864@calimero.vinschen.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 7/22/2015 12:06 PM, Corinna Vinschen wrote:
> On Jul 22 11:33, Eliot Moss wrote:
>> On 7/22/2015 11:14 AM, Corinna Vinschen wrote:
>>
>>>    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.
>>
>> 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 Windows.
>> 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

Thanks!  Helpful to know!   Eliot

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

