Commit e0a0c2f4 by Ian Lance Taylor

re PR go/64595 (go programs abort when debug info is stripped)

	PR go/64595
runtime: Don't crash in runtime_callers if no debug info available.

From-SVN: r220057
parent 7bbf9734
...@@ -129,6 +129,11 @@ static void ...@@ -129,6 +129,11 @@ static void
error_callback (void *data __attribute__ ((unused)), error_callback (void *data __attribute__ ((unused)),
const char *msg, int errnum) const char *msg, int errnum)
{ {
if (errnum == -1)
{
/* No debug info available. Carry on as best we can. */
return;
}
if (errnum != 0) if (errnum != 0)
runtime_printf ("%s errno %d\n", msg, errnum); runtime_printf ("%s errno %d\n", msg, errnum);
runtime_throw (msg); runtime_throw (msg);
......
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