
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.
26 lines
237 B
Go
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
|
|
}
|