From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23762 invoked by alias); 29 Mar 2013 14:15:34 -0000 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 Received: (qmail 23641 invoked by uid 89); 29 Mar 2013 14:15:26 -0000 X-Spam-SWARE-Status: No, score=-7.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 29 Mar 2013 14:15:24 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2TEFI2A018589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Mar 2013 10:15:22 -0400 Received: from host2.jankratochvil.net (ovpn-116-39.ams2.redhat.com [10.36.116.39]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r2TEFEwj003689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 29 Mar 2013 10:15:17 -0400 Date: Fri, 29 Mar 2013 16:28:00 -0000 From: Jan Kratochvil To: mbilal Cc: gdb-patches@sourceware.org, tromey@redhat.com Subject: Re: Fwd: [PATCH] Fix for PR gdb/15224 should "set history save on" by default Message-ID: <20130329141514.GA16671@host2.jankratochvil.net> References: <51558CB4.8010003@codesourcery.com> <51558EC5.2030806@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51558EC5.2030806@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-03/txt/msg01108.txt.bz2 On Fri, 29 Mar 2013 13:53:25 +0100, mbilal wrote: > The following patch is a fix for PR gdb/15224, that is 'history save' > command should be enabled by default > so that user can always be able to see their commands history by default I would also like it that way for many years but it is not that simple. If you run GDB testsuite afterwards it will fill up (and discard due to its maximum size) your personal history. Normally it does not happen because testsuite runs gdb -nx so ~/.gdbinit is not read and therefore the history saving is not enabled. Eclipse CDT also uses "gdb --interpreter mi2 --nx". While that could be fixed in GDB testsuite the same problem will affect any GDB frontend. Could you propose a patch compatible at least with existing front ends (like Eclipse CDT)? I was thinking to just bind the default WRITE_HISTORY_P to whether ~/.gdbinit is being read or not. Thanks, Jan