delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/27/02:40:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 26 Oct 2005 23:40:05 -0700
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Accessing signal context from a handler
Message-ID: <20051027064004.GA4000@efn.org>
References: <20020715171545 DOT GC28190 AT redhat DOT com> <Pine DOT GSO DOT 4 DOT 44 DOT 0207151331220 DOT 24745-100000 AT slinky DOT cs DOT nyu DOT edu> <loom DOT 20051026T233204-817 AT post DOT gmane DOT org> <20051026215615 DOT GA15549 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20051026215615.GA15549@trixie.casa.cgf.cx>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes

On Wed, Oct 26, 2005 at 05:56:15PM -0400, Christopher Faylor wrote:
> On Wed, Oct 26, 2005 at 09:36:53PM +0000, Adam Irawan wrote:
> >Igor Pechtchanski <pechtcha <at> cs.nyu.edu> writes:
> >> 
> >> On Mon, 15 Jul 2002, Christopher Faylor wrote:
> >> 
> >> > On Mon, Jul 15, 2002 at 01:00:23PM -0400, Igor Pechtchanski wrote:
> >> > >Does Cygwin allow accessing the context (register state, etc) of the
> >> > >faulted instruction from a signal handler installed by sigaction(),
> >> > >similar to ucontext/mcontext in Linux?  [snip]
> >> >
> >> > It's not available.
> >> > cgf
> >> [snip snip]
> >> 
> >> Basically, I'm trying to port an application that intercepts SIGSEGV and
> >> makes decisions based on the IP of the faulted instruction.  The
> >> application currently uses the sigaction/ucontext mechanism in Linux.
> >> Any suggestions on how to do this in Cygwin (preferably similar to the
> >> Linux code, to maximize reuse) would be appreciated.
> >> 
> >> [snipped the code bit]
> >
> >
> >Wow, dug up an ancient post today that seems to relate to my current problem
> >more than anything else I've searched for. Just wondering, has there been
> >changes regarding this topic at all? Thanks alot,
> 
> It's not available.
> 
> cgf

You left out the bit where ucontext used to not be passed at all, but
in current snapshots it's passed as a null pointer...

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

- Raw text -


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