delve/_fixtures/ebpf_trace.go
Derek Parker 5c5fca4849
pkg/proc/internal/ebpf: Fix handling of entry / return (#3081)
This patch removes the old error-prone way of tracking
whether the tracepoint is for a function entry or
return. Instead of trying to guess, let the data structure
simply tell us directly.
2022-07-29 12:00:32 +02:00

15 lines
148 B
Go

package main
import "fmt"
func callme(i int) int {
if i == 0 {
return 100
}
return callme(i - 1)
}
func main() {
fmt.Println(callme(10))
}