From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9092 invoked by alias); 27 Nov 2006 14:46:44 -0000 Received: (qmail 9082 invoked by uid 22791); 27 Nov 2006 14:46:43 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-04.spheriq.net (HELO lon-del-04.spheriq.net) (195.46.50.101) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 27 Nov 2006 14:46:33 +0000 Received: from lon-out-02.spheriq.net ([195.46.50.130]) by lon-del-04.spheriq.net with ESMTP id kAREkTJq013491 for ; Mon, 27 Nov 2006 14:46:29 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-02.spheriq.net with ESMTP id kAREkSNN002027 for ; Mon, 27 Nov 2006 14:46:29 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id kAREkRqB031638 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 27 Nov 2006 14:46:28 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7F6F8DA44; Mon, 27 Nov 2006 14:46:22 +0000 (GMT) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E3B094750D; Mon, 27 Nov 2006 14:46:13 +0000 (GMT) Received: from [164.129.15.13] (bri1043.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.7.5a-GA) with ESMTP id CIG35466 (AUTH stubbsa); Mon, 27 Nov 2006 14:46:08 GMT Message-ID: <456AFA30.80508@st.com> Date: Mon, 27 Nov 2006 14:46:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: John Pye Cc: gdb@sourceware.org Subject: Re: usability: exiting from GDB References: <456A79B5.2020505@anu.edu.au> In-Reply-To: <456A79B5.2020505@anu.edu.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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/msg00176.txt.bz2 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. > 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. > I often find that in exiting GDB, which requires ctrl-D to be pressed > twice, I press ctrl-D three times and end up also logging out of my > terminal program, which is annoying. If I hit my light switch twice the light doesn't stay on. Not helpful, but there it is. > Another issue is that after exiting GDB via ctrl-D-ctrl-D, GDB doesn't > output a newline, which causes the following bash input line to be > messed up. I expect that could be changed. Care to submit a patch? Andrew