From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31135 invoked by alias); 29 Oct 2006 21:18:01 -0000 Received: (qmail 31127 invoked by uid 22791); 29 Oct 2006 21:18:01 -0000 X-Spam-Check-By: sourceware.org Received: from mx.freeshell.ORG (HELO sdf.lonestar.org) (192.94.73.18) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 29 Oct 2006 21:17:58 +0000 Received: from sdf.lonestar.org (IDENT:taviso@otaku.freeshell.org [192.94.73.2]) by sdf.lonestar.org (8.13.5.20060308/8.13.8) with ESMTP id k9TLHoOc006545; Sun, 29 Oct 2006 21:17:50 GMT Received: from localhost (localhost [[UNIX: localhost]]) by sdf.lonestar.org (8.13.8/8.12.8/Submit) id k9TLHoB3008144; Sun, 29 Oct 2006 21:17:50 GMT Date: Sun, 29 Oct 2006 21:18:00 -0000 From: Tavis Ormandy To: Peng Yu Cc: gdb@sourceware.org Subject: Re: Why gdb always confirm if I'm quitting when the program is still running? Message-ID: <20061029211751.GA19301@sdf.lonestar.org> References: <366c6f340610290753g220a046cl5c1ab6b218215e7d@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline In-Reply-To: <366c6f340610290753g220a046cl5c1ab6b218215e7d@mail.gmail.com> User-Agent: Mutt/1.5.11 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00284.txt.bz2 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 728 On Sun, Oct 29, 2006 at 09:53:59AM -0600, Peng Yu wrote: > (gdb) q > The program is running. Exit anyway? (y or n) y to disable all confirmations, use set confirm off, to just disable it for this command, you could try something like define q set confirm off quit end > In the same gdb session, I can use up or down arrow to recall commands. > > But once a gdb session is start over, all the history commands are > gone. I'm wondering if it is possible to recall those commands? try something like set history filename ~/.gdb_history set history save Thanks, Tavis. --=20 ------------------------------------- taviso@sdf.lonestar.org | finger me for my pgp key. ------------------------------------------------------- --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 238 -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Comment: finger me for my pgp key iQBVAwUBRUUaf9ommWwmkP1xAQGGGQH/eXcUfl0/dXOLKgVSmLgw0u6JG+gKc9Op KG5QVwdgYxBoDKF6aJ0BR1CQ0ItHEdMWcdl2TM2GGEKqh5ITtKftEA== =SDRZ -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq--