where have my source files gone?
I Want To Do This - Again!
You can ask gdb to save a "checkpoint":
After stepping forward and finding you've gone further then you wanted, switch back to the checkpoint:
restart <checkpoint id>
To see the list of active check-points:
What a checkpoint does: forks off a copy of the program, so gdb will be able to switch back to it later on.
To delete checkpoints:
delete checkpoint <checkpoint id>
Originally written by