[Top][All Lists]

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

Re: [libunwind] Unwinding using the context passed to a signal handler (

From: Max Asbock
Subject: Re: [libunwind] Unwinding using the context passed to a signal handler (doesn't work)
Date: Fri, 26 Mar 2004 11:58:26 -0800

On x86_64 we can't currently unwind across signal frames using dwarf2
info. The kernel doesn't export that information yet.
Therefore even if we call unw_getcontext() from the signal handler and
unwind back till we hit the signal frame, we still have to pick out the
values for the next SP and IP from the ucontext on the signal frame. I
am not sure if this is different from using the same ucontext passed in
by the signal handler directly.


On Fri, 2004-03-26 at 11:03, Young, Mark wrote:
> David,
> Do all platforms make the same distinction between asynchronous
> (signal) and synchronous contexts?
> I like Johan's suggestion of an alternate unw_init_local interface
> (unw_init_from_signal_context_local) that takes the signal context as
> the starting point. From what you are saying, an ia64 implementation
> of this would have to ignore the signal context, call getcontext, and
> unwind until it found the signal frame. But is that true for all
> platforms?

reply via email to

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