diff options
Diffstat (limited to 'libgo/go/runtime/symtab.go')
-rw-r--r-- | libgo/go/runtime/symtab.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libgo/go/runtime/symtab.go b/libgo/go/runtime/symtab.go index 22a2b13..89a27c4 100644 --- a/libgo/go/runtime/symtab.go +++ b/libgo/go/runtime/symtab.go @@ -62,8 +62,15 @@ func CallersFrames(callers []uintptr) *Frames { return &Frames{callers: callers} } -// Next returns frame information for the next caller. -// If more is false, there are no more callers (the Frame value is valid). +// Next returns a Frame representing the next call frame in the slice +// of PC values. If it has already returned all call frames, Next +// returns a zero Frame. +// +// The more result indicates whether the next call to Next will return +// a valid Frame. It does not necessarily indicate whether this call +// returned one. +// +// See the Frames example for idiomatic usage. func (ci *Frames) Next() (frame Frame, more bool) { if len(ci.callers) == 0 { return Frame{}, false |