This is the mail archive of the
mailing list for the GDB project.
Re: RFC: Don't kill the program after "file"
On Wed, 14 Jun 2006 13:06:40 -0700
Jim Blandy <firstname.lastname@example.org> wrote:
> > Another thing which just
> > occured to me would be to make the file command succeed if you say "n"
> > at the query.
> I think something like that is workable. What if we simply left the
> killing to the 'kill' and 'run' commands, and let the prompt say:
> A program is being debugged already.
> Are you sure you want to change the file? (y or n)
> Saying 'y' would not kill the program.
> This would mean that 'exec-file; run' when a program is running would
> ask the user two questions: one to confirm the file change, and then
> another to confirm the kill before restarting.
Jim's proposal sounds reasonable to me.