projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bbf973
)
re PR go/64595 (go programs abort when debug info is stripped)
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 23 Jan 2015 19:49:53 +0000
(19:49 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 23 Jan 2015 19:49:53 +0000
(19:49 +0000)
PR go/64595
runtime: Don't crash in runtime_callers if no debug info available.
From-SVN: r220057
libgo/runtime/go-callers.c
patch
|
blob
|
history
diff --git
a/libgo/runtime/go-callers.c
b/libgo/runtime/go-callers.c
index 047034539a90bebade6e3c0efaf97d26e3af0c4a..34a21188e3a89d4c21f4463aa3bc907991eb7314 100644
(file)
--- 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);