Documentation ¶
Overview ¶
Package cgosymbolizer contains runtime support for code generated by the cgo tool. See the documentation for the cgo command for details on using cgo.
Package cgosymbolizer provides a cgo symbolizer based on libbacktrace. This will be used to provide a symbolic backtrace of cgo functions. This package does not export any symbols. To use it on all platforms, add a line like
import _ "github.com/searKing/golang/go/runtime/cgosymbolizer" go build main.go
Advance Usage can be set by go build tags:
BOOST_STACKTRACE_USE_WINDBG BOOST_STACKTRACE_USE_WINDBG_CACHED BOOST_STACKTRACE_USE_BACKTRACE BOOST_STACKTRACE_USE_ADDR2LINE BOOST_STACKTRACE_USE_NOOP
all tags defined in https://www.boost.org/doc/libs/develop/doc/html/stacktrace/configuration_and_build.html
go build -tags BOOST_STACKTRACE_USE_BACKTRACE main.go
somewhere in your program. for linux only, you can use `cgosymbolizer` by ianlancetaylor instead.
import _ "github.com/ianlancetaylor/cgosymbolizer"
Click to show internal directories.
Click to hide internal directories.