On 10/27/2011 05:58 PM, Arun Sharma wrote:
On Thu, Oct 27, 2011 at 1:38 AM, Ken Werner<[email protected]>  wrote:
Define unw_tdep_context rather than using ucontext_t in order to support
systems that lack ucontext.h. Note that POSIX.1-2008 removed getcontext,
makecontext and swapcontext from its specification.


Why not provide a compatible definition of ucontext_t for platforms
that don't define it?

Hi Arun,

The only fields of ucontext_t that libunwind on ARM is using are the sixteen registers provided by mcontext_t. We could define our own ucontext_t (which is what I did as a workaround actually) but why should libunwind rely on a structure that is only used by functions marked as obsolete?

Regards
Ken

_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to