mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 19:41:22 +08:00
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:
parent
7bbf973451
commit
e0a0c2f4c6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user