runtime: fix context used by getTraceback
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 26 Jan 2017 19:05:16 +0000 (19:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 26 Jan 2017 19:05:16 +0000 (19:05 +0000)
    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

gcc/go/gofrontend/MERGE
libgo/runtime/proc.c

index 582a86b0088fa19669ba4c9934f9179fa14446db..29c971c25a04b9bd42d742dfe5058a67d171e837 100644 (file)
@@ -1,4 +1,4 @@
-5c6c93f58e2aaae186bac5dcde9df1679d4896b1
+f8c451ed42fd71b85afab54a33fc321df0ff3b0b
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 60d5bdbc6124abe342b73d6224d11b8923ee6669..06a9c2ad6b84f1cb429d513313b1931522ce6fc1 100644 (file)
@@ -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);