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
This commit is contained in:
Ian Lance Taylor 2015-01-23 19:49:53 +00:00
parent 7bbf973451
commit e0a0c2f4c6

View File

@ -129,6 +129,11 @@ static void
error_callback (void *data __attribute__ ((unused)),
const char *msg, int errnum)
{
if (errnum == -1)
{
/* No debug info available. Carry on as best we can. */
return;
}
if (errnum != 0)
runtime_printf ("%s errno %d\n", msg, errnum);
runtime_throw (msg);