On Sun, 1 Feb 2004, Daniel Diaz wrote: > Hi > > I'm the author of GNU Prolog and to improve my cygwin port I need to be > able to obtain the address that caused a SIGSEGV when I trap it inside a > handler. I cannot find any documentation on this. Could you help me > please ? > > Thank you for your attention. > Daniel Diaz
Daniel, It is better to address questions of this sort to the official Cygwin mailing list (see <http://cygwin.com/lists.html#available-lists>). Not only are you going to get access to more expertise than any one person can provide, but your question (and the others' answers) will be stored in the (searchable) list archives for people to find later. I'm redirecting this query to the appropriate cygwin mailing list, and setting the Reply-To: accordingly. To answer your question, you seem to be asking about SA_SIGINFO-style contexts. These aren't implemented in Cygwin (yet), but CGF (one of the core maintainers of Cygwin) has mentioned that with some of his upcoming changes, SA_SIGINFO support will be available. You might want to watch the CVS commits to see when this happens, and then either wait for a snapshot or build your own DLL. Note that once you do this, your newly-built executable will have a versioned dependence, so you won't be able to release it to people until the next official Cygwin release after the necessary changes. Alternatively, there were a couple of recipes posted on how to obtain this information via the Win32 system calls. Searching Google for "SA_SIGINFO site:cygwin.com" should point you to those discussions. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/