This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [PATCH, RFC] MIPS: Implement the getcontext API
On Thu, Mar 05, 2009 at 08:58:18AM -0800, David Daney wrote:
>> The interface is meant to be internal to Linux, so the usual rule of
>> volatility apply. The structure is not defined in a header even.
>>
>
> Certainly it started out that way, but if the kernel doesn't supply
> DWARF2 unwind tables for its signal trampolines (which it currently does
> not), then I think using the structures is the only way for user-space
> applications to unwind through signal trampolines.
>
> I was pointing this out not as any type of objection to your plan, but as
> further support for formalizing the interfaces.
The alternative is just to move those trampolines into the C library
going forward... there they can easily get unwind information. That's
how ARM handles it (using SA_RESTORER).
--
Daniel Jacobowitz
CodeSourcery