This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][4.3] Deprecate -ftrapv
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: rridge at csclub dot uwaterloo dot ca (Ross Ridge)
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 05 Mar 2008 21:23:38 +0100
- Subject: Re: [PATCH][4.3] Deprecate -ftrapv
- References: <20080303200818.7921A73D9E@caffeine.csclub.uwaterloo.ca>
* Ross Ridge:
> At the risk of my curiousity getting me into more trouble, could any
> one explain to me how to access these "eip" and "trapno" members from
> a signal handler on Linux? I can't find any relevent documention with
> man nor Google.
I think you need sigaction with a SA_SIGINFO, and chase structs from the
ucontext_t argument inside the signal handler. MLton contains example
code, and likely GCJ and OpenJDK as well.