Documentation ¶
Index ¶
- type Examiner
- func (ex *Examiner) Children(idx int) []*dwarf.Entry
- func (e *Examiner) DIEs() []*dwarf.Entry
- func (ex *Examiner) DumpEntry(idx int, dumpKids bool, ilevel int)
- func (ex *Examiner) EntryFromOffset(off dwarf.Offset) *dwarf.Entry
- func (ex *Examiner) FileRef(dw *dwarf.Data, dieIdx int, fileRef int64) (string, error)
- func (ex *Examiner) IdxFromOffset(off dwarf.Offset) int
- func (ex *Examiner) Named(name string) []*dwarf.Entry
- func (ex *Examiner) Parent(idx int) *dwarf.Entry
- func (ex *Examiner) ParentCU(idx int) *dwarf.Entry
- func (ex *Examiner) Populate(rdr *dwarf.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Examiner ¶
type Examiner struct {
// contains filtered or unexported fields
}
func (*Examiner) EntryFromOffset ¶
Given a DIE offset, return the previously read dwarf.Entry, or nil
func (*Examiner) FileRef ¶
FileRef takes a given DIE by index and a numeric file reference (presumably from a decl_file or call_file attribute), looks up the reference in the .debug_line file table, and returns the proper string for it. We need to know which DIE is making the reference so as to find the right compilation unit.
func (*Examiner) IdxFromOffset ¶
Return the ID that Examiner uses to refer to the DIE at offset off
func (*Examiner) Named ¶
Return a list of all DIEs with name 'name'. When searching for DIEs by name, keep in mind that the returned results will include child DIEs such as params/variables. For example, asking for all DIEs named "p" for even a small program will give you 400-500 entries.