libunwind-devel
[Top][All Lists]
Advanced

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

Re: [Libunwind-devel] [PATCH 4/6] [ARM] Add support for systems that don


From: Ken Werner
Subject: Re: [Libunwind-devel] [PATCH 4/6] [ARM] Add support for systems that don't support ucontext.h
Date: Fri, 28 Oct 2011 14:08:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

On 10/27/2011 05:58 PM, Arun Sharma wrote:
On Thu, Oct 27, 2011 at 1:38 AM, Ken Werner<address@hidden>  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



reply via email to

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