package binutils
import "github.com/google/pprof/internal/binutils"
Package binutils provides access to the GNU binutils.
Index ¶
- type Binutils
- func (bu *Binutils) Disasm(file string, start, end uint64, intelSyntax bool) ([]plugin.Inst, error)
- func (bu *Binutils) Open(name string, start, limit, offset uint64, relocationSymbol string) (plugin.ObjFile, error)
- func (bu *Binutils) SetFastSymbolization(fast bool)
- func (bu *Binutils) SetTools(config string)
- func (bu *Binutils) String() string
Types ¶
type Binutils ¶
type Binutils struct {
// contains filtered or unexported fields
}
A Binutils implements plugin.ObjTool by invoking the GNU binutils.
func (*Binutils) Disasm ¶
Disasm returns the assembly instructions for the specified address range of a binary.
func (*Binutils) Open ¶
func (bu *Binutils) Open(name string, start, limit, offset uint64, relocationSymbol string) (plugin.ObjFile, error)
Open satisfies the plugin.ObjTool interface.
func (*Binutils) SetFastSymbolization ¶
SetFastSymbolization sets a toggle that makes binutils use fast symbolization (using nm), which is much faster than addr2line but provides only symbol name information (no file/line).
func (*Binutils) SetTools ¶
SetTools processes the contents of the tools option. It expects a set of entries separated by commas; each entry is a pair of the form t:path, where cmd will be used to look only for the tool named t. If t is not specified, the path is searched for all tools.
func (*Binutils) String ¶
String returns string representation of the binutils state for debug logging.
Source Files ¶
addr2liner.go addr2liner_llvm.go addr2liner_nm.go binutils.go disasm.go
- Version
- v0.0.0-20250607225305-033d6d78b36a (latest)
- Published
- Jun 7, 2025
- Platform
- darwin/amd64
- Imports
- 21 packages
- Last checked
- 10 months ago –
Tools for package owners.