Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addr2Line ¶
type Addr2Line struct {
// contains filtered or unexported fields
}
Addr2Line is a struct that contains the debug information of an ELF file.
func New ¶
New parses the ELF file at soPath, extracts the debug information and symbols. Then returns an Addr2Line struct.
type Addr2LineEntry ¶
type Addr2LineEntry struct {
// Address in an executable or an offset in a section of a relocatable object
Address uint64
// SoPath is the name of the library for which addresses should be translated
SoPath string
// Func is the name of function at Addr2LineEntry.Address in
// Addr2LineEntry.SoPath
Func string
// File is the name of the source file in which the Func is located in
// Addr2LineEntry.Address of Addr2LineEntry.SoPath library.
File string
// Line is the number of line in Addr2LineEntry.File at Address
Line uint
// Inline is the flag that indicates whether the function is inlined or not.
Inline bool
}
Addr2LineEntry represents debug information for a address in the debug symbol.
Click to show internal directories.
Click to hide internal directories.