Rather than deleting a breakpoint or watchpoint, you might prefer to disable it. This makes the breakpoint inoperative as if it had been deleted, but remembers the information on the breakpoint so that you can enable it again later.
You disable and enable breakpoints and watchpoints with the
disable commands, optionally specifying one or
more breakpoint numbers as arguments. Use
info break or
info watch to print a list of breakpoints or watchpoints if you
do not know which numbers to use.
A breakpoint or watchpoint can have any of four different states of enablement:
breakcommand starts out in this state.
tbreakcommand starts out in this state.
You can use the following commands to enable or disable breakpoints and watchpoints:
disable [breakpoints] [bnums...]
enable [breakpoints] [bnums...]
enable [breakpoints] once bnums...
enable [breakpoints] delete bnums...
Except for a breakpoint set with
tbreak (see section Setting breakpoints), breakpoints that you set are initially enabled;
subsequently, they become disabled or enabled only when you use one of
the commands above. (The command
until can set and delete a
breakpoint of its own, but it does not change the state of your other
breakpoints; see section Continuing and stepping.)
Go to the first, previous, next, last section, table of contents.