Documentation ¶
Index ¶
- type Reader
- func (reader *Reader) NextMemberVariable() (*dwarf.Entry, error)
- func (reader *Reader) NextPackageVariable() (*dwarf.Entry, error)
- func (reader *Reader) NextScopeVariable() (*dwarf.Entry, error)
- func (reader *Reader) Seek(off dwarf.Offset)
- func (reader *Reader) SeekToEntry(entry *dwarf.Entry) error
- func (reader *Reader) SeekToFunction(pc uint64) (*dwarf.Entry, error)
- func (reader *Reader) SeekToType(entry *dwarf.Entry, resolveTypedefs bool, resolvePointerTypes bool) (*dwarf.Entry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
func (*Reader) NextMemberVariable ¶
NextMememberVariable moves the reader to the next debug entry that describes a member variable and returns the entry.
func (*Reader) NextPackageVariable ¶
NextPackageVariable moves the reader to the next debug entry that describes a package variable. Any TagVariable entry that is not inside a sub prgram entry and is marked external is considered a package variable.
func (*Reader) NextScopeVariable ¶
NextScopeVariable moves the reader to the next debug entry that describes a local variable and returns the entry.
func (*Reader) SeekToEntry ¶
SeekToEntry moves the reader to an arbitrary entry.
func (*Reader) SeekToFunction ¶
SeekToFunctionEntry moves the reader to the function that includes the specified program counter.
func (*Reader) SeekToType ¶
func (reader *Reader) SeekToType(entry *dwarf.Entry, resolveTypedefs bool, resolvePointerTypes bool) (*dwarf.Entry, error)
SeekToType moves the reader to the type specified by the entry, optionally resolving typedefs and pointer types. If the reader is set to a struct type the NextMemberVariable call can be used to walk all member data.