cgosymbolizer

package
v1.2.117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: MIT Imports: 42 Imported by: 0

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"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL