From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17860 invoked by alias); 6 Dec 2006 01:06:06 -0000 Received: (qmail 17851 invoked by uid 22791); 6 Dec 2006 01:06:06 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Dec 2006 01:05:59 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 09E6348CE46; Tue, 5 Dec 2006 20:05:58 -0500 (EST) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07679-01-4; Tue, 5 Dec 2006 20:05:57 -0500 (EST) Received: from takamaka.act-europe.fr (unknown [70.71.0.212]) by nile.gnat.com (Postfix) with ESMTP id B945B48CBC6; Tue, 5 Dec 2006 20:05:57 -0500 (EST) Received: by takamaka.act-europe.fr (Postfix, from userid 1000) id 696B334C099; Tue, 5 Dec 2006 17:06:27 -0800 (PST) Date: Wed, 06 Dec 2006 01:06:00 -0000 From: Joel Brobecker To: Andrew STUBBS , GDB Patches , john.pye@anu.edu.au Subject: Re: [PATCH] Ctrl-D Message-ID: <20061206010627.GE32651@adacore.com> References: <456ED831.6000308@st.com> <20061205205030.GD25572@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061205205030.GD25572@nevyn.them.org> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00055.txt.bz2 > > New behaviour: > > > > (gdb) quit > > The program is running. Exit anyway? (y or n) Y > > bash$ > > How'd you feel about "EOF [assumed %c]" or something like that? I'd > look at that and think I typed the Y. I really like Daniel's suggestion. > > 2006-11-30 Andrew Stubbs > > > > * event-top.c (command_handler): On EOF, print 'quit' and run quit > > command via execute_command such that hooks and trace work. > > * utils.c (defaulted_query): On EOF, print default answer and newline. > > OK for HEAD with or without that change, as you prefer. I'd recommend > this for 6.6 now that it's in HEAD; Joel, is that OK? Sure. I was a bit nervious about any unexpected side-effect of the change in event-top.c (changing the call to quit_command() into a call to execute_command ("quit")) But if you think it's low risk, then I don't have any problem. -- Joel