2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
authorMuhammad Bilal <mbilal@codesourcery.com>
Wed, 6 Nov 2013 13:53:50 +0000 (18:53 +0500)
committerMuhammad Bilal <mbilal@codesourcery.com>
Wed, 6 Nov 2013 13:53:50 +0000 (18:53 +0500)
PR cli/15224
* top.c (init_main): 'set history save on' by default.

gdb/ChangeLog
gdb/top.c

index e721f029d99ec7affa2e0a87393ac480abe21e5e..e387685cadb0a9f207566fa806fd432c2c7d893e 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
+
+       PR cli/15224
+       * top.c (init_main): 'set history save on' by default.
+
 2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
 
        PR cli/16122
index 7d928e13be2bb2bbe25640bebbcb843ef0dd7317..d7409d9baae5d8ed1f8c7e180907f1c7379f8271 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1708,7 +1708,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;