proc: support cgo stacktraces
When creating a stack trace we should switch between the goroutine stack and the system stack (where cgo code is executed) as appropriate to reconstruct the logical stacktrace. Goroutines that are currently executing on the system stack will have the SystemStack flag set, frames of the goroutine stack will have a negative FrameOffset (like always) and frames of the system stack will have a positive FrameOffset (which is actually just the CFA value for the frame). Updates #935
Showing
_fixtures/cgostacktest/hello.c
0 → 100644
_fixtures/cgostacktest/hello.h
0 → 100644
_fixtures/cgostacktest/main.go
0 → 100644
想要评论请 注册 或 登录