
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.
15 lines
148 B
Go
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))
|
|
}
|