This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: [PATCH] Fix for PR gdb/15224 should "set history save on" by default


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  <mbilal@codesourcery.com>
+
+     PR gdb/15224
+     * top.c (init_main):Modified write_history_p.
+
+     * NEWS: Update.
+
 2013-03-28  Joel Brobecker  <brobecker@adacore.com>

     * 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  <mbilal@codesourcery.com>
+
+    PR gdb/15224
+    * gdb.texinfo (Command history): Set history save enabled
+
 2013-03-28  Pedro Alves  <palves@redhat.com>

     * gdb.texinfo (Remote Configuration) <set remote @var{name}-packet


Ok to Commit?


Thanks
-Bilal




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]