From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17641 invoked by alias); 29 Mar 2013 12:53:44 -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 17626 invoked by uid 89); 29 Mar 2013 12:53:37 -0000 X-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 29 Mar 2013 12:53:33 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1ULYoE-0007Of-S8 from Muhammad_Bilal@mentor.com ; Fri, 29 Mar 2013 05:53:30 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 29 Mar 2013 05:53:30 -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.1.289.1; Fri, 29 Mar 2013 12:53:28 +0000 Message-ID: <51558EC5.2030806@codesourcery.com> Date: Fri, 29 Mar 2013 16:18:00 -0000 From: mbilal User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: CC: Subject: Fwd: [PATCH] Fix for PR gdb/15224 should "set history save on" by default References: <51558CB4.8010003@codesourcery.com> In-Reply-To: <51558CB4.8010003@codesourcery.com> X-Forwarded-Message-Id: <51558CB4.8010003@codesourcery.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-03/txt/msg01105.txt.bz2 Hi All, 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 Index: gdb/top.c =================================================================== RCS file: /cvs/src/src/gdb/top.c,v retrieving revision 1.231 diff -u -p -r1.231 top.c --- gdb/top.c 27 Mar 2013 12:14:09 -0000 1.231 +++ gdb/top.c 29 Mar 2013 11:39:40 -0000 @@ -1604,7 +1604,7 @@ init_main (void) /* Set the important stuff up for command editing. */ command_editing_p = 1; history_expansion_p = 0; - write_history_p = 0; + write_history_p = 1; /* Setup important stuff for command line editing. */ rl_completion_word_break_hook = gdb_completion_word_break_characters; Index: gdb/NEWS =================================================================== RCS file: /cvs/src/src/gdb/NEWS,v retrieving revision 1.577 diff -u -p -r1.577 NEWS --- gdb/NEWS 28 Mar 2013 21:58:03 -0000 1.577 +++ gdb/NEWS 29 Mar 2013 11:41:42 -0000 @@ -3,6 +3,8 @@ *** Changes since GDB 7.6 +* The command 'history save' is now default enabled + * New commands: maint set|show per-command maint set|show per-command space Index: gdb/ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/ChangeLog,v retrieving revision 1.15339 diff -u -p -r1.15339 ChangeLog --- gdb/ChangeLog 29 Mar 2013 02:04:14 -0000 1.15339 +++ gdb/ChangeLog 29 Mar 2013 11:43:27 -0000 @@ -1,3 +1,10 @@ +2013-03-29 Muhammad Bilal + + PR gdb/15224 + * top.c (init_main):Modified write_history_p. + + * NEWS: Update. + 2013-03-28 Joel Brobecker * coffread.c (is_import_fixup_symbol): New function. mbilal@pkl-mbilal-ubuntu:~/src/gdb/doc$ cvs diff gdb.texinfo Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.1067 diff -u -p -r1.1067 gdb.texinfo --- gdb.texinfo 28 Mar 2013 21:58:03 -0000 1.1067 +++ gdb.texinfo 29 Mar 2013 12:22:31 -0000 @@ -21218,7 +21218,7 @@ is not set. @item set history save @itemx set history save on Record command history in a file, whose name may be specified with the -@code{set history filename} command. By default, this option is disabled. +@code{set history filename} command. By default, this option is enabled. @item set history save off Stop recording command history in a file. Index: gdb/doc/ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/doc/ChangeLog,v retrieving revision 1.1430 diff -u -p -r1.1430 ChangeLog --- gdb/doc/ChangeLog 28 Mar 2013 21:58:03 -0000 1.1430 +++ gdb/doc/ChangeLog 29 Mar 2013 11:51:07 -0000 @@ -1,3 +1,8 @@ +2013-03-29 Muhammad Bilal + + PR gdb/15224 + * gdb.texinfo (Command history): Set history save enabled + 2013-03-28 Pedro Alves * gdb.texinfo (Remote Configuration)