From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10401 invoked by alias); 1 Aug 2013 12:43:20 -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 10388 invoked by uid 89); 1 Aug 2013 12:43:20 -0000 X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_20,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 01 Aug 2013 12:43:19 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1V4sDm-0005wD-8m from Muhammad_Bilal@mentor.com ; Thu, 01 Aug 2013 05:43:10 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 1 Aug 2013 05:43:10 -0700 Received: from [137.202.157.37] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server (TLS) id 14.2.247.3; Thu, 1 Aug 2013 13:43:08 +0100 Message-ID: <51FA57D8.10704@codesourcery.com> Date: Thu, 01 Aug 2013 12:43:00 -0000 From: Muhammad Bilal User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Pedro Alves CC: Eli Zaretskii , , 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> <519CFF3D.4080001@redhat.com> <83bo82ucpv.fsf@gnu.org> <519D099F.7090101@redhat.com> <83a9nmu8l0.fsf@gnu.org> <519D1EE6.10404@redhat.com> In-Reply-To: <519D1EE6.10404@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-08/txt/msg00020.txt.bz2 On 05/23/2013 12:39 AM, Pedro Alves wrote: > On 05/22/2013 08:18 PM, Eli Zaretskii wrote: >>> Scripts do have a means get the previous behavior. Simply adding >>> this to .gdbinit: >> But .gdbinit in the current directory is no longer read by default, so >> I can't, not without restoring the old behavior, which does involve >> using a command that will cause old GDB's to barf. >> >>> The reasoning for changing the default is that we (Pedro/Jan/Muhammad) >>> believe enabling history by default is a better default that having it >>> disabled by default, as currently. >> Another gratuitous incompatibility. > Sorry, but simply calling changes gratuitous when I've made an > effort to explain why I believe they're good doesn't help. :-/ > > The idea is that enabling the feature by default will expose > it to more users, who will benefit from it, most (educated-guessing > here, of course) not being aware GDB presently can already use > history from previous sessions. > >>> Couple the fact that ".gdb_history" >>> is a dot/hidden file, with enabling history saving by default, and users >>> could end up with their filesystem littered with random hidden .gdb_history >>> files. I think GDB shouldn't do that by default. So in order to enable >>> history saving by default, we believe we should default to ~/.gdb_history >>> instead first. bash also defaults to saving history under $HOME, and I'd >>> think most other interactive programs/shell do so too. So it feels like >>> GDB is the odd one out here. >> Being the odd one out is not a reason good enough to change behavior >> that was the default for a long time. > The default has been to not save the history at all. > > When weighing the pros and cons, I believe the pros outweigh the cons. > > That's just my opinion, and I've just tried to clarify why I have it. > ping?