symtab

package
v2.24.0-RC2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package symtab allows reading low-level symbol information from the symbol table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SymbolTable

type SymbolTable struct {
	// contains filtered or unexported fields
}

SymbolTable allows for mapping between symbols and their addresses.

func New

func New(filename string) (*SymbolTable, error)

New creates a new symbol table based on the debug info read from the specified file.

func (*SymbolTable) Addr2Sym

func (s *SymbolTable) Addr2Sym(addr uintptr) (string, error)

Addr2Sym returns the symbol name for the provided address.

func (*SymbolTable) Sym2Addr

func (s *SymbolTable) Sym2Addr(symbol string) (uintptr, error)

Sym2Addr returns the address of the provided symbol name.

Jump to

Keyboard shortcuts

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