gdb: add all_breakpoints_safe function