linux-unwind.h (mips_fallback_frame_state): Use CFA to find sigcontext.
authorDavid Daney <ddaney@avtrex.com>
Thu, 15 Nov 2007 05:33:28 +0000 (05:33 +0000)
committerDavid Daney <daney@gcc.gnu.org>
Thu, 15 Nov 2007 05:33:28 +0000 (05:33 +0000)
2007-11-14  David Daney  <ddaney@avtrex.com>

* config/mips/linux-unwind.h (mips_fallback_frame_state): Use CFA
to find sigcontext.

From-SVN: r130194

gcc/ChangeLog
gcc/config/mips/linux-unwind.h

index 60529f5975488215915593102826dbe87198742b..308c9353426cec50ca1d73226d449e2c63b09db8 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-14  David Daney  <ddaney@avtrex.com>
+
+       * config/mips/linux-unwind.h (mips_fallback_frame_state): Use CFA
+       to find sigcontext.
+
 2007-11-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR target/33923
index ed0a84b2db320e86fd4f23d7aea2b76f5ed0e294..4e71182f5cf080bd5963057866a30029d3d73643 100644 (file)
@@ -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