aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-01-26 19:05:16 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-01-26 19:05:16 +0000
commitfda6ee70338aa5445b63366cfaff29496819c373 (patch)
tree4de48e41a185d679530d392b5ca58e5400a1863f /libgo
parent3e5fb20f1ffbc71f7593460dd28873025e03c64a (diff)
downloadgcc-fda6ee70338aa5445b63366cfaff29496819c373.zip
gcc-fda6ee70338aa5445b63366cfaff29496819c373.tar.gz
gcc-fda6ee70338aa5445b63366cfaff29496819c373.tar.bz2
runtime: fix context used by getTraceback
I typoed the argument passed to getcontext in getTraceback, and the error was hidden by ucontext_arg. This would have been caught by some of the runtime package tests, but we don't run most of them because they rely on `go build`, and the go tool is not available while running the libgo testsuite. We should fix the libgo testsuite, somehow, so that they run. Reviewed-on: https://go-review.googlesource.com/35837 From-SVN: r244946
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 60d5bdb..06a9c2a 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -631,7 +631,7 @@ void getTraceback(G* me, G* gp)
#ifdef USING_SPLIT_STACK
__splitstack_getcontext(&me->stackcontext[0]);
#endif
- getcontext(ucontext_arg(&me->stackcontext[0]));
+ getcontext(ucontext_arg(&me->context[0]));
if (gp->traceback != nil) {
runtime_gogo(gp);