Clear all breakpoints in gdb
15,400
Solution 1
use delete
command with no arguments; it can be abbreviated to del
or d
.
Solution 2
I want to disable or remove all of them at once, or all except for one.
Use disable
(with no arguments) to disable all breakpoints, followed by enable N
, where N is the breakpoint you want to keep.
Comments
-
spraff about 2 years
I get into situations in gdb/ddd where there are too many breakpoints.
I want to disable or remove all of them at once, or all except for one. I find the ddd breakpoints menu confusing and unreliable. How can I do this with a gdb command?