Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineCache ¶
type LineCache struct {
// contains filtered or unexported fields
}
LineCache reads ranges of lines from a set of files, using caching line position information.
type Range ¶
type Range struct {
Low, High uint64
}
Range represents a range of addresses [Low, High).
type SourceBlock ¶
type SourceBlock struct {
Path string
// Func is the TagSubprogram or TagInlinedSubroutine of the function
// or inlined function that this source code is in. This may be nil
// if unknown.
Func *dwarf.Entry
LineStart int
NLines int
// PCs maps from a line number to a set of PC ranges of instructions
// that appear at that line.
PCs map[int][]Range
}
func SourceBlocks ¶
func SourceBlocks(d *dbg.Data, subprogram dbg.Subprogram) ([]SourceBlock, error)
SourceBlocks returns a set of source code blocks for subprogram. Because of inlining, there may be more than one source block.
Click to show internal directories.
Click to hide internal directories.