Documentation ¶
Index ¶
- Variables
- type ELF
- func (f *ELF) AddressToOffset(addr uint64) (offset uint64, err error)
- func (e *ELF) FuncCalledBy(funcname string) (called []string, err error)
- func (e *ELF) FuncFramePointerOffset(name string) (offset uint64, err error)
- func (e *ELF) FuncInstructions(name string) (insts []x86asm.Inst, addr, offset uint64, err error)
- func (e *ELF) FuncPcRangeInDwarf(funcname string) (lowpc, highpc uint64, err error)
- func (e *ELF) FuncPcRangeInSymtab(name string) (lowpc, highpc uint64, err error)
- func (e *ELF) FuncRawInstructions(name string) (bytes []byte, addr, offset uint64, err error)
- func (e *ELF) FuncRetOffsets(name string) (offsets []uint64, err error)
- func (f *ELF) IterDebugInfo() <-chan *dwarf.Entry
- func (f *ELF) NonInlinedSubprogramDIEs() (dies map[string]*dwarf.Entry, err error)
- func (f *ELF) ResolveAddress(addr uint64) (sym elf.Symbol, offset uint, err error)
- func (e *ELF) ResolveInstructions(bytes []byte) (insts []x86asm.Inst)
- func (f *ELF) ResolveSymbol(sym string) (symbol elf.Symbol, err error)
- func (f *ELF) Section(s string) *elf.Section
- func (f *ELF) SectionBytes(s string) (bytes []byte, err error)
- func (f *ELF) Symbols() (symbols []elf.Symbol, symnames map[string]elf.Symbol, err error)
- func (e *ELF) Text() (bytes []byte, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SymbolNotFoundError = errors.New("symbol not found") DIENotFoundError = errors.New("DIE not found") FramePointerNotFound = errors.New("fp not found") ReturnNotFound = errors.New("return not found") PcRangeTooLargeErr = errors.New("PC range too large") FramePointerNotFoundErr = errors.New("framepointer not found") RetNotFoundErr = errors.New("ret not found") )
Functions ¶
This section is empty.
Types ¶
type ELF ¶
type ELF struct {
// contains filtered or unexported fields
}
func (*ELF) FuncFramePointerOffset ¶
func (*ELF) FuncInstructions ¶
func (*ELF) FuncPcRangeInDwarf ¶
func (*ELF) FuncPcRangeInSymtab ¶
func (*ELF) FuncRawInstructions ¶
func (*ELF) FuncRetOffsets ¶
func (*ELF) IterDebugInfo ¶
func (*ELF) NonInlinedSubprogramDIEs ¶
func (*ELF) ResolveAddress ¶
func (*ELF) ResolveInstructions ¶
Click to show internal directories.
Click to hide internal directories.