OK, info break lists the breakpoints, but not in a format that would work well with reusing them using the --command as in this question. Does GDB have a method for
Put the following in ~/.gdbinit to define bsave and brestore as GDB commands to save- and restore breakpoints.
define bsave save breakpoints ~/.breakpoints end define brestore source ~/.breakpoints end