This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Don't kill the program after "file"


On Wed, 14 Jun 2006 13:06:40 -0700
Jim Blandy <jimb@codesourcery.com> 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.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]