delve/service/api
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
..
command.go proc,service,terminal: add ways to list goroutines waiting on a channel (#3481) 2023-08-23 13:02:34 -07:00
conversions.go pkg/proc,service/debugger: do not disable unsatisfiable breakpoints (#3868) 2024-12-04 19:07:56 -08:00
prettyprint_test.go terminal: add -size argument to examinemem command 2020-09-11 08:21:11 +02:00
prettyprint.go *: remove redundant lines at the start/end of block (#3730) 2024-05-20 14:16:22 -07:00
shorten_type_test.go Shorten variable types (#3535) 2023-11-09 10:15:25 +01:00
shorten_type.go Shorten variable types (#3535) 2023-11-09 10:15:25 +01:00
types.go service,terminal,cmd/dlv: automatically guessing substitute-path config (#3781) 2024-10-31 10:19:08 -07:00