diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-23 19:49:53 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-23 19:49:53 +0000 |
commit | a1a0f4b3d8431065660c9c7d5592a7bc9abdfa2e (patch) | |
tree | f9ef8b5a2ae9b307b150ef491af9362f3dc59ced /libgo | |
parent | 58ca7445868b8f899d1310b88218d5ba4d103b13 (diff) | |
download | gcc-a1a0f4b3d8431065660c9c7d5592a7bc9abdfa2e.tar.gz |
PR go/64595
runtime: Don't crash in runtime_callers if no debug info available.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220057 138bc75d-0d04-0410-961f-82ee72b054a4
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 047034539a9..34a21188e3a 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); |