From cc3c24ed0273b988420c807675d21a70c0787a7a Mon Sep 17 00:00:00 2001 From: David Daney Date: Thu, 15 Nov 2007 05:33:28 +0000 Subject: [PATCH] linux-unwind.h (mips_fallback_frame_state): Use CFA to find sigcontext. 2007-11-14 David Daney * config/mips/linux-unwind.h (mips_fallback_frame_state): Use CFA to find sigcontext. From-SVN: r130194 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/linux-unwind.h | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60529f59754..308c9353426 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-11-14 David Daney + + * config/mips/linux-unwind.h (mips_fallback_frame_state): Use CFA + to find sigcontext. + 2007-11-14 Eric Botcazou PR target/33923 diff --git a/gcc/config/mips/linux-unwind.h b/gcc/config/mips/linux-unwind.h index ed0a84b2db3..4e71182f5cf 100644 --- a/gcc/config/mips/linux-unwind.h +++ b/gcc/config/mips/linux-unwind.h @@ -66,9 +66,10 @@ mips_fallback_frame_state (struct _Unwind_Context *context, if (pc[0] == (0x24020000 | __NR_sigreturn)) { struct sigframe { + u_int32_t ass[4]; /* Argument save space for o32. */ u_int32_t trampoline[2]; struct sigcontext sigctx; - } *rt_ = context->ra; + } *rt_ = context->cfa; sc = &rt_->sigctx; } else @@ -76,10 +77,11 @@ mips_fallback_frame_state (struct _Unwind_Context *context, if (pc[0] == (0x24020000 | __NR_rt_sigreturn)) { struct rt_sigframe { + u_int32_t ass[4]; /* Argument save space for o32. */ u_int32_t trampoline[2]; struct siginfo info; _sig_ucontext_t uc; - } *rt_ = context->ra; + } *rt_ = context->cfa; sc = &rt_->uc.uc_mcontext; } else -- 2.30.2