[PATCH][4.3] Deprecate -ftrapv
Florian Weimer
fw@deneb.enyo.de
Wed Mar 5 20:25:00 GMT 2008
* 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.
More information about the Gcc
mailing list