dwarfdump

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	SrcFile string
	Version Version
	Offsets []FieldDump
}

type Field

type Field struct {
	Name   string
	Offset uint64
}

type FieldDump

type FieldDump struct {
	Name   string
	Offset int
}

func Dump

func Dump(elfPath string, fields []Need) []FieldDump

type Index

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

func (*Index) GetTypeByName

func (i *Index) GetTypeByName(name string) *Typ

func (*Index) GetTypeByName2

func (i *Index) GetTypeByName2(name string) *Typ

type Need

type Need struct {
	Name       string
	PrettyName string
	Fields     []NeedField
	Size       bool
}

type NeedField

type NeedField struct {
	Name      string
	PrintName string
}

type Typ

type Typ struct {
	Name   string
	Fields []Field
	Size   int64
}

func (Typ) GetField

func (t Typ) GetField(name string) *Field

type Typedef

type Typedef struct {
	Name        string
	TypeOffsets []dwarf.Offset
}

type Version

type Version struct {
	Major, Minor, Patch int
}

func (*Version) Compare

func (p *Version) Compare(other Version) int

Jump to

Keyboard shortcuts

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