symtab

package
Version: v2.34.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0, BSD-3-Clause, MIT 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.

Source Files

Jump to

Keyboard shortcuts

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