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]

[PATCH] [PR gdb/15224] Enable "set history save on" by default


Hi Pedro,

This patch enable the 'set history save on' by default.

This patch is independent of 'Change the default set history filename to ~/.gdb_history'.
so I think we should go forward.

OK?

2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>

    PR cli/15224
    * top.c (init_main): 'set history save on' by default.
---
 gdb/top.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/top.c b/gdb/top.c
index 7d928e1..d7409d9 100644
--- 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;
-- 
1.7.9.5


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