Message ID | 1439848790-3488-4-git-send-email-jcmvbkbc@gmail.com |
---|---|
State | New |
Headers | show |
On Mon, Aug 17, 2015 at 2:59 PM, Max Filippov <jcmvbkbc@gmail.com> wrote: > 2015-08-18 Max Filippov <jcmvbkbc@gmail.com> > libgcc/ > * config/xtensa/unwind-dw2-xtensa.c (_Unwind_GetCFA): Return > context->sp instead of context->cfa. Approved.
diff --git a/libgcc/config/xtensa/unwind-dw2-xtensa.c b/libgcc/config/xtensa/unwind-dw2-xtensa.c index 82b0e63..8e579c7 100644 --- a/libgcc/config/xtensa/unwind-dw2-xtensa.c +++ b/libgcc/config/xtensa/unwind-dw2-xtensa.c @@ -130,7 +130,7 @@ _Unwind_GetGR (struct _Unwind_Context *context, int index) _Unwind_Word _Unwind_GetCFA (struct _Unwind_Context *context) { - return (_Unwind_Ptr) context->cfa; + return (_Unwind_Ptr) context->sp; } /* Overwrite the saved value for register INDEX in CONTEXT with VAL. */