]> Cypherpunks repositories - gostls13.git/commit
runtime: pass signal context to cgo traceback function
authorIan Lance Taylor <iant@golang.org>
Fri, 27 May 2016 17:05:52 +0000 (10:05 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 31 May 2016 21:17:40 +0000 (21:17 +0000)
commit3d037cfaf8c70b8af87cb5d57553a7e3e9dc2117
tree217097c00ea85f856d669f0660de9413a18a8bf7
parentc52dff0727c58cb7a6e768d91d15e3eaafcb420a
runtime: pass signal context to cgo traceback function

When doing a backtrace from a signal that occurs in C code compiled
without using -fasynchronous-unwind-tables, we have to rely on frame
pointers. In order to do that, the traceback function needs the signal
context to reliably pick up the frame pointer.

Change-Id: I7b45930fced01685c337d108e0f146057928f876
Reviewed-on: https://go-review.googlesource.com/23494
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/cgo/gcc_traceback.c
src/runtime/testdata/testprogcgo/pprof.go
src/runtime/testdata/testprogcgo/traceback.go
src/runtime/testdata/testprogcgo/tracebackctxt_c.c
src/runtime/traceback.go