Next: Error in Breakpoints, Previous: Break Commands, Up: Breakpoints
To save breakpoint definitions to a file use the save breakpoints
command.
save breakpoints [
filename]
source
command (see Command Files). Note that watchpoints
with expressions involving local variables may fail to be recreated
because it may not be possible to access the context where the
watchpoint is valid anymore. Because the saved breakpoint definitions
are simply a sequence of gdb commands that recreate the
breakpoints, you can edit the file in your favorite editing program,
and remove the breakpoint definitions you're not interested in, or
that can no longer be recreated.