Commit 759580ed by Andrew Haley Committed by Andrew Haley

unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL before looking in the context.

2007-07-15  Andrew Haley  <aph@redhat.com>

        * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc !=
	NULL before looking in the context.

From-SVN: r126658
parent 16c16a24
2007-07-15 Andrew Haley <aph@redhat.com>
* unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
before looking in the context.
2007-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/32398
......
......@@ -222,7 +222,10 @@ _Unwind_Ptr
_Unwind_GetIPInfo (struct _Unwind_Context *context, int *ip_before_insn)
{
*ip_before_insn = 0;
return context->fc->call_site + 1;
if (context->fc != NULL)
return context->fc->call_site + 1;
else
return 0;
}
/* Set the return landing pad index in CONTEXT. */
......
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