explorer

package
v0.0.0-...-b9e7692 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStack

func NewStack() *stack

Types

type Explorer

type Explorer struct {
	DwarfFile string
	// contains filtered or unexported fields
}

Struct that mediates DWARF parsing as well as reading and writing

func NewExplorer

func NewExplorer() *Explorer

Returns a new explorer struct with sane defaults

func NewExplorerFromFile

func NewExplorerFromFile(fname string) *Explorer

Returns a new explorer with reader set to the specified file

func (*Explorer) Back

func (e *Explorer) Back() error

Moves the context to the previous item

func (*Explorer) CreateReaderFromFile

func (e *Explorer) CreateReaderFromFile(fname string) error

Creates a reader within this explorer, reading the specified file

func (*Explorer) CurrMode

func (e *Explorer) CurrMode() string

Returns a string representation of the curent mode

func (*Explorer) CurrName

func (e *Explorer) CurrName() string

Returns the name of the current item

func (*Explorer) GetType

func (e *Explorer) GetType() error

Moves the context to the applicable TypeDef proxy

Creates a TypeDefProxy from the current item if it is either an entry or a VariableProxy. No action if the current item is already a TypeDefProxy.

func (*Explorer) Info

func (e *Explorer) Info() string

Returns a string representing key info about the current entry, if there is one

func (*Explorer) ListCUs

func (e *Explorer) ListCUs() ([]string, error)

Returns a list of all CUs in this file

func (*Explorer) ListChildren

func (e *Explorer) ListChildren() []string

Returns a slice containing the names of each child of the current item

func (*Explorer) StepIntoChild

func (e *Explorer) StepIntoChild(childName string) error

Moves the context to the specified child of the current item

Child is specified by name

func (*Explorer) Up

func (e *Explorer) Up() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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