From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15026 invoked by alias); 24 Jul 2006 20:36:06 -0000 Received: (qmail 15015 invoked by uid 22791); 24 Jul 2006 20:36:05 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 24 Jul 2006 20:36:03 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G579k-0004Q6-QU for gdb-patches@sourceware.org; Mon, 24 Jul 2006 16:36:00 -0400 Date: Mon, 24 Jul 2006 20:36:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: RFC: Don't kill the program after "file" Message-ID: <20060724203600.GF15759@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <20060613205014.GA20822@nevyn.them.org> <20060626120020.020b6482@ironwood.lan> <20060712201609.GQ24622@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060712201609.GQ24622@nevyn.them.org> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00355.txt.bz2 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