summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-23 19:49:53 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-23 19:49:53 +0000
commita1a0f4b3d8431065660c9c7d5592a7bc9abdfa2e (patch)
treef9ef8b5a2ae9b307b150ef491af9362f3dc59ced /libgo
parent58ca7445868b8f899d1310b88218d5ba4d103b13 (diff)
downloadgcc-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.c5
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);