diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-01-23 19:49:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-01-23 19:49:53 +0000 |
commit | e0a0c2f4c6b7db9634f7cdd8b8516bac156d12d7 (patch) | |
tree | f9ef8b5a2ae9b307b150ef491af9362f3dc59ced /libgo | |
parent | 7bbf973451f7e74bcdc93475aa57dff0010a4e42 (diff) | |
download | gcc-e0a0c2f4c6b7db9634f7cdd8b8516bac156d12d7.zip gcc-e0a0c2f4c6b7db9634f7cdd8b8516bac156d12d7.tar.gz gcc-e0a0c2f4c6b7db9634f7cdd8b8516bac156d12d7.tar.bz2 |
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
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/runtime/go-callers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/runtime/go-callers.c b/libgo/runtime/go-callers.c index 0470345..34a2118 100644 --- a/libgo/runtime/go-callers.c +++ b/libgo/runtime/go-callers.c @@ -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); |