go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.37k stars 2.13k forks source link

Error clearing stack watchpoint #3739

Closed emilykmarx closed 3 weeks ago

emilykmarx commented 1 month ago
  1. What version of Delve are you using (dlv version)? Backend=rr (5.7.0), on the recent commit with fixes for rr 5.7.0 (https://github.com/go-delve/delve/commit/7c7265f4e68a333bb084217e7b7ae065024e428b)
    Delve Debugger
    Version: 1.22.1
    Build: $Id: 0c3470054da6feac5f6dcf3e3e5144a64f7a9a48 $
  2. What version of Go are you using? (go version)? go1.20.1 linux/amd64
  3. What operating system and processor architecture are you using? Ubuntu 20.04 LTS, amd64

I’m noticing stack watchpoints aren’t cleared the way I’d expect. The CLI session and the target file are in this gist: https://gist.github.com/emilykmarx/c9bb39fdefd2ac8cfb843d53e867a12d, but as a summary:

emilykmarx commented 1 month ago

I tried the same thing with the native backend (added CLI session for that to the gist) -- same issues with could not clear out-of-scope watchpoint and went out of scope and was cleared, with a few differences (the expected hit for index 3 doesn't happen, and restart gives breakpoint 3 can not be enabled for index 1)

emilykmarx commented 3 weeks ago

Thanks for fixing!