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.

Source Files