libgo: print reason code if throwing unwind exception fails

Calls to _Unwind_RaiseException and friends *can* return due to bugs in
libgo or memory corruption. When this occurs, print a message to stderr
with the reason code before aborting to aid debugging.

Change-Id: Iadd7bfca40def25fa7fa9208dca52a56dbbe2208
Trust: Than McIntosh <>
Reviewed-by: Ian Lance Taylor <>
1 file changed