Next: Disabling, Previous: Set Catchpoints, Up: Breakpoints
It is often necessary to eliminate a breakpoint, watchpoint, or catchpoint once it has done its job and you no longer want your program to stop there. This is called deleting the breakpoint. A breakpoint that has been deleted no longer exists; it is forgotten.
With the clear
command you can delete breakpoints according to
where they are in your program. With the delete
command you can
delete individual breakpoints, watchpoints, or catchpoints by specifying
their breakpoint numbers.
It is not necessary to delete a breakpoint to proceed past it. gdb automatically ignores breakpoints on the first instruction to be executed when you continue execution without changing the execution address.
clear
clear
locationclear
functionclear
filename:
functionclear
linenumclear
filename:
linenumdelete
[breakpoints
] [range...
]set
confirm off
). You can abbreviate this command as d
.