If you stop the program with ctrl-c when it waiting for you input after the prompt (or indeed whenever you want to stop the program), control will be returned to gdb which will tell you where the...