This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: Don't kill the program after "file"
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Mon, 24 Jul 2006 16:36:00 -0400
- Subject: Re: RFC: Don't kill the program after "file"
- References: <20060613205014.GA20822@nevyn.them.org> <vt2r71r4i3z.fsf@theseus.home.> <20060626120020.020b6482@ironwood.lan> <20060712201609.GQ24622@nevyn.them.org>
On Wed, Jul 12, 2006 at 04:16:09PM -0400, Daniel Jacobowitz wrote:
> > > 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.
>
> Me too! Here is an implementation. It gives the prompt suggested by
> Jim if there is a TTY, calls error if the user declines (which prevents
> "file" from trying to do "symbol-file" afterwards), and otherwise
> succeeds. "file" never kills the running program.
>
> Any opinions on this patch? Shall I commit it? Tested on
> x86_64-pc-linux-gnu.
I've committed this.
--
Daniel Jacobowitz
CodeSourcery