From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1164 invoked by alias); 29 Nov 2006 03:27:03 -0000 Received: (qmail 1154 invoked by uid 22791); 29 Nov 2006 03:27:02 -0000 X-Spam-Check-By: sourceware.org Received: from out2.smtp.messagingengine.com (HELO out2.smtp.messagingengine.com) (66.111.4.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 29 Nov 2006 03:26:56 +0000 Received: from db2.internal (db2.internal [10.202.2.12]) by out1.messagingengine.com (Postfix) with ESMTP id EFB6347CEE; Tue, 28 Nov 2006 22:26:54 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by db2.internal (MEProxy); Tue, 28 Nov 2006 22:26:54 -0500 Received: from [150.203.45.115] (nungatta.anu.edu.au [150.203.45.115]) by mail.messagingengine.com (Postfix) with ESMTP id EF12FD491; Tue, 28 Nov 2006 22:26:53 -0500 (EST) Message-ID: <456CFDF8.10408@anu.edu.au> Date: Wed, 29 Nov 2006 03:27:00 -0000 From: John Pye User-Agent: Thunderbird 1.5.0.8 (X11/20061115) MIME-Version: 1.0 To: Andrew STUBBS CC: gdb@sourceware.org Subject: Re: usability: exiting from GDB References: <456A79B5.2020505@anu.edu.au> <456AFA30.80508@st.com> In-Reply-To: <456AFA30.80508@st.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00208.txt.bz2 Hi Andrew, Andrew STUBBS wrote: > John Pye wrote: >> What I would like is that (a) the 'ctrl-C' behaviour from the gdb prompt >> was changed so that instead of (I think uselessly) outputting 'Quit' and >> bringing up another prompt line, it actually *did* quit GDB. Or, > > Ctrl-C stops the GDB command that is currently running and, if > necessary, stops the program being debugged. It isn't supposed to quit > the debugger and, if it did, that would annoy me in exactly the same > way you complain about Crtl-D. > > If there is no command running then Crtl-C doesn't mean much - maybe > the 'Quit' message should be silenced somehow. I think that the 'Quit' message is great. But instead of *suggesting*, it should ask for confirmation: "Ctrl-C pressed from GDB console. Do you want to exit? (y or n)". Then this confirmation could be turned off somewhere in the configuration settings. > >> alternatively, (b) that the following prompted could somehow be >> persistently disabled: "The program is running. Exit anyway? (y or n)". > > Put this in your .gdbinit file: > > define hook-quit > set confirm off > end > > Obviously this only works if you actually use the quit (or q) command. This suggestion would be great if the Ctrl-C action brought up the "Exit anyway?" question, as I said above. Cheers JP