diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2015-04-21 10:56:45 +1000 |
---|---|---|
committer | Alex Brainman <alex.brainman@gmail.com> | 2015-05-18 03:09:45 +0000 |
commit | e544bee1ddf4a2869221b68ef8cec6c97b6d827b (patch) | |
tree | d24d430d13ae2946299014431489723b2bb223fa /src/runtime/signal_windows.go | |
parent | 0b9866fd561d5ecebee14d73c0a4938dec5abe7d (diff) | |
download | go-e544bee1ddf4a2869221b68ef8cec6c97b6d827b.tar.gz go-e544bee1ddf4a2869221b68ef8cec6c97b6d827b.zip |
runtime: correct exception stack trace output
It is misleading when stack trace say:
signal arrived during cgo execution
but we are not in cgo call.
Change-Id: I627e2f2bdc7755074677f77f21befc070a101914
Reviewed-on: https://go-review.googlesource.com/9190
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/signal_windows.go')
-rw-r--r-- | src/runtime/signal_windows.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/signal_windows.go b/src/runtime/signal_windows.go index da8a1c5801..b2fce53534 100644 --- a/src/runtime/signal_windows.go +++ b/src/runtime/signal_windows.go @@ -131,7 +131,9 @@ func lastcontinuehandler(info *exceptionrecord, r *context, gp *g) int32 { print("PC=", hex(r.ip()), "\n") if _g_.m.lockedg != nil && _g_.m.ncgo > 0 && gp == _g_.m.g0 { - print("signal arrived during cgo execution\n") + if iscgo { + print("signal arrived during external code execution\n") + } gp = _g_.m.lockedg } print("\n") |