fix gdb error message: Cannot remove breakpoints because program is no longer writable.