I set a breakpoint and set its conditions and some other commands. Now I realize that I should had set it a few lines ahead. How can I change the line of the breakpoint without deleting it and losing its settings?
How can I change the line of the breakpoint without deleting it and losing its settings?
You can't.
What you can do is use save breakpoints /tmp/bp.txt
command to save current settings for all breakpoints, edit the /tmp/bp.txt
file to update the line info (or anything else), and finally delete
to remove current breakpoints and source /tmp/bp.txt
to reload them.