From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13485 invoked by alias); 22 May 2013 17:24:26 -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 13445 invoked by uid 89); 22 May 2013 17:24:19 -0000 X-Spam-SWARE-Status: No, score=-8.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_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; Wed, 22 May 2013 17:24:18 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4MHOFkZ010824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 22 May 2013 13:24:15 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r4MHODNT016084; Wed, 22 May 2013 13:24:14 -0400 Message-ID: <519CFF3D.4080001@redhat.com> Date: Wed, 22 May 2013 17:24:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Eli Zaretskii CC: mbilal , gdb-patches@sourceware.org, jan.kratochvil@redhat.com Subject: Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history. References: <51877A32.1030503@codesourcery.com> <51877A99.4060503@codesourcery.com> <51877B42.7@codesourcery.com> <51877BC6.6080007@codesourcery.com> <51877C76.2000509@codesourcery.com> <518A0BA8.9000703@codesourcery.com> <51936CAF.2090508@codesourcery.com> <51937A87.2030403@codesourcery.com> <83ehd85q79.fsf@gnu.org> In-Reply-To: <83ehd85q79.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-05/txt/msg00849.txt.bz2 On 05/15/2013 02:26 PM, Eli Zaretskii wrote: >> Date: Wed, 15 May 2013 17:07:35 +0500 >> From: mbilal >> CC: , , >> >> >> On Wednesday, May 15, 2013 4:31 PM Eli wrote: >> >>> Any reasons why we should be changing the default? Is it bad to have >> >a different history file in each project's directory? >> >> On Mon, 01 Apr 2013 14:29:30 +0200, Jan Kratochvil wrote: >>> I see there should be also changed the default to: >>> set history filename ~/.gdb_history >> >>> Otherwise it is a similar pain to ./.gdbinit, it is also non-standard to any >>> other normal application which use history files in $HOME, I do not find using >>> ./.gdb_history by default as acceptable. >> All therequirement for this issue has beendiscussed here. >> >> http://sourceware.org/ml/gdb-patches/2013-04/msg00067.html > > Sigh... Another gratuitous backward incompatibility creeps in. Keep in mind that history saving isn't enabled by default. Would you prefer if we did something like: At startup time, if "set history filename" hasn't been used (tracked with a new global flag), then check whether there's a $cwd/.gdb_history file, and if so, output a warning stating that it's no longer read by default. The warning could also suggest adding "set history filename .gdb_history" to .gdbinit to get back the old behavior. Thus if the user already has "set history filename ~/.gdb_history" in .gdbinit she'll not see any warning. But I'm really not sure it's worth the bother though. -- Pedro Alves