[Libunwind-devel] 'mcontext_t' has no member named 'arm_r0'
From:
Thierry Panthier
Subject:
[Libunwind-devel] 'mcontext_t' has no member named 'arm_r0'
Date:
Wed, 4 Feb 2009 12:38:41 +1100
Daniel,
On february last year I saw a message about this problem and you recommended using a toolchain from CodeSourcery.
We currently use a toolchain for ARM processors based on gcc 4.3.2 and glibc 2.9 and I would prefer to keep it (unless you point me a reason not to :)).
Well... I took a look my glibc headers and found out that mcontext_t is an opaque data type.
typedef struct sigcontext mcontext_t;
As I needed to run mpatrol on my board I did a quick hack on libunwind so that I could cross-compile it.
I just cast the mcontext_t variable to struct sigcontext.