[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libunwind] Changing the value of "gp"

From: David Mosberger
Subject: Re: [libunwind] Changing the value of "gp"
Date: Wed, 22 Jan 2003 10:10:29 -0800


I realized that you can't really replace the longjmp with
unw_resume(), because you may be restarting execution at some place
other than the last call-site of a function.  The 2nd scheme I
proposed should still work, except that you'd also have to use
setjmp() in SETUP_EXC(), would raise the exception with longjmp(), and
would use libunwind only to locate the appropriate exception handler.

Of course, using a language that natively supports exception handling
might be a better choice, alltogether. ;-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]