16
votes

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?

2

2 Answers

20
votes

use delete command with no arguments; it can be abbreviated to del or d.

8
votes

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.