Documentation ¶
Index ¶
- type Dependencies
- func (m *Dependencies) AddFromPclntab(gp *gore.Package, typ entity.PackageType, pclntab *gosym.Table)
- func (m *Dependencies) AddModules(mods []*debug.Module, typ entity.PackageType)
- func (m *Dependencies) FinishLoad()
- func (m *Dependencies) Functions(yield func(*entity.Function) bool)
- func (m *Dependencies) GetPackage(name string) (*entity.Package, bool)
- type EntryFeeder
- type KnownInfo
- func (k *KnownInfo) AddDwarfSubProgram(isGo bool, d *dwarf.Data, subEntry *dwarf.Entry, pkg *entity.Package, ...)
- func (k *KnownInfo) AddDwarfVariable(entry *dwarf.Entry, d *dwarf.Data, pkg *entity.Package, ptrSize int)
- func (k *KnownInfo) AnalyzeSymbol(store bool) error
- func (k *KnownInfo) CalculatePackageSize()
- func (k *KnownInfo) CalculateSectionSize() error
- func (k *KnownInfo) CollectCoverage() error
- func (k *KnownInfo) Disasm() error
- func (k *KnownInfo) ExtractPackageFromSymbol(s string) string
- func (k *KnownInfo) GetDwarfCompileUnitFeeder(d *dwarf.Data, cuEntry *dwarf.Entry, ptrSize int) (EntryFeeder, bool)
- func (k *KnownInfo) GetPackageFromDwarfCompileUnit(cuEntry *dwarf.Entry) *entity.Package
- func (k *KnownInfo) LoadGoreInfo(f *gore.GoFile) error
- func (k *KnownInfo) LoadPackages(f *gore.GoFile) error
- func (k *KnownInfo) LoadSectionMap() error
- func (k *KnownInfo) MarkSymbol(name string, addr, size uint64, typ entity.AddrType)
- func (k *KnownInfo) RequireModInfo() error
- func (k *KnownInfo) TryLoadDwarf() bool
- type VersionFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct { TopPkgs entity.PackageMap Trie *trie.PathTrie[*entity.Package] // contains filtered or unexported fields }
Dependencies a pseudo package for the whole binary
func NewDependencies ¶
func NewDependencies(k *KnownInfo) *Dependencies
func (*Dependencies) AddFromPclntab ¶
func (m *Dependencies) AddFromPclntab(gp *gore.Package, typ entity.PackageType, pclntab *gosym.Table)
func (*Dependencies) AddModules ¶
func (m *Dependencies) AddModules(mods []*debug.Module, typ entity.PackageType)
func (*Dependencies) FinishLoad ¶
func (m *Dependencies) FinishLoad()
func (*Dependencies) Functions ¶ added in v1.5.4
func (m *Dependencies) Functions(yield func(*entity.Function) bool)
func (*Dependencies) GetPackage ¶
func (m *Dependencies) GetPackage(name string) (*entity.Package, bool)
type EntryFeeder ¶ added in v1.5.1
type KnownInfo ¶
type KnownInfo struct { Size uint64 BuildInfo *gore.BuildInfo Sects *entity.Store Deps *Dependencies KnownAddr *entity.KnownAddr GoStringSymbol *entity.AddrPos Coverage entity.AddrCoverage Gore *gore.GoFile PClnTabAddr uint64 Wrapper wrapper.RawFileWrapper VersionFlag VersionFlag HasDWARF bool }
func (*KnownInfo) AddDwarfSubProgram ¶ added in v1.3.0
func (*KnownInfo) AddDwarfVariable ¶ added in v1.3.0
func (*KnownInfo) AnalyzeSymbol ¶
func (*KnownInfo) CalculatePackageSize ¶
func (k *KnownInfo) CalculatePackageSize()
CalculatePackageSize calculate the size of each package Happens after disassembly
func (*KnownInfo) CalculateSectionSize ¶
func (*KnownInfo) CollectCoverage ¶
func (*KnownInfo) ExtractPackageFromSymbol ¶
ExtractPackageFromSymbol copied from debug/gosym/symtab.go
func (*KnownInfo) GetDwarfCompileUnitFeeder ¶ added in v1.5.1
func (*KnownInfo) GetPackageFromDwarfCompileUnit ¶ added in v1.3.0
func (*KnownInfo) LoadGoreInfo ¶ added in v1.5.1
func (*KnownInfo) LoadSectionMap ¶
func (*KnownInfo) MarkSymbol ¶
func (*KnownInfo) RequireModInfo ¶
func (*KnownInfo) TryLoadDwarf ¶
type VersionFlag ¶
func UpdateVersionFlag ¶ added in v1.5.2
func UpdateVersionFlag(f *gore.GoFile) VersionFlag
Click to show internal directories.
Click to hide internal directories.