delve/_fixtures/databpstack.go
Alessandro Arzilli 348c722981
proc/gdbserver: support watchpoints (#2659)
Adds watchpoint support to gdbserver backend for rr debugger and
debugserver on macOS/amd64 and macOS/arm64.

Also changes stack watchpoints to support reverse execution.
2021-10-04 14:45:05 -07:00

26 lines
237 B
Go

package main
import (
"fmt"
//
)
func f() {
w := 0
g(1000, &w) // Position 0
}
func g(cnt int, p *int) {
if cnt == 0 {
*p = 10
return // Position 1
}
g(cnt-1, p)
}
func main() {
f()
fmt.Printf("done\n") // Position 2
}