So I wrote a user threads lib. The threads run in a Solaris process. Signals 
occur on the stack of whatever thread is currently executing. I get signals, 
like SIGINT, etc., and can let them unwind naturally. But I thought that I'd 
like to unwind the exception from within the exception handler, i.e., return to 
whatever thread was interrupted/signalled without "naturally" unwinding the 
exception. Does anyone have any insight into how that could be done? I have 
looked at ucontext.h, found the registers of the thread that was interrupted, 
in a ucontext_t, but have had no luck trying to unwind things. Are the offsets 
#defined in /usr/include/sys/regset.h useful when examining what is inside a 
ucontext_t? Am I trying to do something that is impossible? I am trying to do 
this on 32-bit Intel arch.
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to