go/src/cmd/cgo
Ian Lance Taylor 5f9a870bf1 cmd/cgo, runtime, runtime/cgo: use cgo context function
Add support for the context function set by runtime.SetCgoTraceback.
The context function was added in CL 17761, without support.
This CL is the support.

This CL has not been tested for real C code, as a working context
function for C code requires unwind support that does not seem to exist.
I wanted to get the CL out before the freeze.

I apologize for the length of this CL.  It's mostly plumbing, but
unfortunately the plumbing is processor-specific.

Change-Id: I8ce11a0de9b3dafcc29efd2649d776e93bff0e90
Reviewed-on: https://go-review.googlesource.com/22508
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-04-29 22:07:36 +00:00
..
ast.go cmd: remove unnecessary type conversions 2016-04-15 02:32:10 +00:00
doc.go cmd/cgo, runtime, runtime/cgo: use cgo context function 2016-04-29 22:07:36 +00:00
gcc.go cmd/cgo: add missing formatting directive in error message 2016-04-15 22:03:22 +00:00
godefs.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
main.go cmd/cgo: increase s390x int type size to 8 bytes 2016-04-08 20:31:58 +00:00
out.go cmd/cgo, runtime, runtime/cgo: use cgo context function 2016-04-29 22:07:36 +00:00
util.go all: single space after period. 2016-03-02 00:13:47 +00:00