delve/service
Alessandro Arzilli d97b471292
pkg/proc,service/debugger: do not disable unsatisfiable breakpoints (#3868)
Previously breakpoints with hitcount conditions that became
unsatisfiable
would become disabled, this was done as an optimization so that the
continue loop would no longer need to stop on them and evaluate their
conditions.
As a side effect this meant that on restart these breakpoints would
remain disabled, even though their hit condition returned satisfiable.

This commit changes Delve behavior so that breakpoints with
unsatisifiable hitcount conditions are no longer disabled but the
associated physical breakpoints are removed anyway, preserving the
optimization.

Some refactoring is done to the way conditions are represented and the
enable status is managed so that in the future it will be possible to
use hitcount conditions to implement "chained" breakpoints (also known
as dependet breakpoints), i.e. breakpoints that become active only
after a second breakpoint has been hit.
2024-12-04 19:07:56 -08:00
..
api pkg/proc,service/debugger: do not disable unsatisfiable breakpoints (#3868) 2024-12-04 19:07:56 -08:00
dap all: remove redundant err declarations (#3855) 2024-11-12 08:04:22 -08:00
debugger pkg/proc,service/debugger: do not disable unsatisfiable breakpoints (#3868) 2024-12-04 19:07:56 -08:00
internal/sameuser Don't use a fixed width for s when parsing /proc/net/tcp lines (#3660) 2024-02-13 10:14:07 -08:00
rpc1 all: remove redundant err declarations (#3855) 2024-11-12 08:04:22 -08:00
rpc2 all: remove redundant err declarations (#3855) 2024-11-12 08:04:22 -08:00
rpccommon *: replace fmt.Errorf with errors.New (#3752) 2024-06-20 21:50:18 +02:00
test pkg/proc,service/debugger: do not disable unsatisfiable breakpoints (#3868) 2024-12-04 19:07:56 -08:00
client.go service,terminal,cmd/dlv: automatically guessing substitute-path config (#3781) 2024-10-31 10:19:08 -07:00
config.go cmd/dlv: Fix trace output (#2038) 2020-05-13 08:38:10 +02:00
listenerpipe.go cmd,service: in non-headless mode use an in-memory connection 2018-10-08 15:11:13 -07:00
rpccallback.go all: fix typos in docs, comments and package name (#3757) 2024-06-25 15:16:58 +02:00
server.go cmd,service: remove temporary def of Server interface in func 2018-10-09 07:56:48 -07:00