dump

package
v0.0.0-...-5725d15 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2014 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintLegend

func PrintLegend()

PrintLegend prints a legend of the colors used in the dumps.

Types

type ByAddr

type ByAddr struct{ Symbols }

func (ByAddr) Less

func (s ByAddr) Less(i, j int) bool

type DumpParser

type DumpParser interface {
	IsAbsOffsetLine(line []byte) (bool, uint64)
	IsDataLine(line []byte) (bool, uint64, []byte)
}

type DumpS

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

func ReadDumpFrom

func ReadDumpFrom(r io.Reader, byteOrder binary.ByteOrder, archSize int, parser DumpParser) (*DumpS, error)

ReadDumpFrom loads a DumpS from a text stack memory dump.

func (*DumpS) TranslateStack

func (dmp *DumpS) TranslateStack(syms *SymbolTable, lowerLimit, upperLimit uint64, sections []*elf.Section)

TranslateStack prints the dump using symbols from syms.

type SymbolTable

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

func (*SymbolTable) Add

func (fs *SymbolTable) Add(sym *elf.Symbol)

func (*SymbolTable) Find

func (fs *SymbolTable) Find(addr uint64) *elf.Symbol

func (*SymbolTable) PrintTop

func (fs *SymbolTable) PrintTop()

func (*SymbolTable) String

func (fs *SymbolTable) String() string

type Symbols

type Symbols []*elf.Symbol

func (Symbols) Len

func (s Symbols) Len() int

func (Symbols) Swap

func (s Symbols) Swap(i, j int)

Jump to

Keyboard shortcuts

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