Sha256: 0d26d9ba629d4d2c49b18981c5f1caa9691367245001381e5f4c48eab91e90c7

Contents?: true

Size: 627 Bytes

Versions: 16

Compression:

Stored size: 627 Bytes

Contents

// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.7
// +build go1.7

package pkgbits

import "runtime"

// walkFrames calls visit for each call frame represented by pcs.
//
// pcs should be a slice of PCs, as returned by runtime.Callers.
func walkFrames(pcs []uintptr, visit frameVisitor) {
	if len(pcs) == 0 {
		return
	}

	frames := runtime.CallersFrames(pcs)
	for {
		frame, more := frames.Next()
		visit(frame.File, frame.Line, frame.Function, frame.PC-frame.Entry)
		if !more {
			return
		}
	}
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby_snowflake_client-1.3.7 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.3.6 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.3.5 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.3.4 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.3.4.pre.debug ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.3.3.pre.debug ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.3.2 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.3.1 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.3.0 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.2.1 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.2.0 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.1.1 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.1.0 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.0.2 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.0.1 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go
ruby_snowflake_client-1.0.0 ext/vendor/golang.org/x/tools/internal/pkgbits/frames_go17.go