Commit a4ab9629 by Andreas Schwab

linux-unwind.h (frob_update_context): Check for NULL lr.

* config/rs6000/linux-unwind.h (frob_update_context): Check for
NULL lr.

From-SVN: r142473
parent 118f7432
......@@ -361,7 +361,7 @@ frob_update_context (struct _Unwind_Context *context, _Unwind_FrameState *fs ATT
we have no good way to determine at compile time what to do. */
unsigned int *insn
= (unsigned int *) _Unwind_GetGR (context, R_LR);
if (*insn == 0xE8410028)
if (insn && *insn == 0xE8410028)
_Unwind_SetGRPtr (context, 2, context->cfa + 40);
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment