Up until rencently I didn't like gdb much, but this was mainly for one thing I got wrong all the time: Make a code change, recompile, restart gdb and start again debugging.
Then I learned: you never need to stop gdb! Just enter "r" and it will restart the program with the fresh changes leaving all breakpoints and setup intact.
Then I learned: you never need to stop gdb! Just enter "r" and it will restart the program with the fresh changes leaving all breakpoints and setup intact.
Game changer to me.