elfutils

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasDWARF

func HasDWARF(f *elf.File) (bool, error)

HasDWARF reports whether the specified executable or library file contains DWARF debug information.

func HasSymbols added in v0.9.0

func HasSymbols(f *elf.File) (bool, error)

HasSymbols reports whether the specified executable or library file contains symbols (both.symtab and .dynsym).

func IsSymbolizableGoObjFile

func IsSymbolizableGoObjFile(f *elf.File) (bool, error)

IsSymbolizableGoObjFile checks whether the specified executable or library file is generated by Go toolchain and has necessary symbol information attached.

func ValidateFile added in v0.12.0

func ValidateFile(path string) error

ValidateFile returns an error if the given object file is not valid.

func ValidateHeader added in v0.12.0

func ValidateHeader(r io.Reader) error

ValidateHeader returns an error if the given object file header is not valid.

Types

type DebugInfoFile added in v0.8.0

type DebugInfoFile interface {
	// SourceLines returns the resolved source lines for a given address.
	SourceLines(addr uint64) ([]profile.LocationLine, error)
}

DebugInfoFile is the interface implemented by symbolizers that use DWARF debug info.

func NewDebugInfoFile added in v0.8.0

func NewDebugInfoFile(f *elf.File, demangler *demangle.Demangler) (DebugInfoFile, error)

NewDebugInfoFile creates a new DebugInfoFile symbolizer.

Jump to

Keyboard shortcuts

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