This is the mail archive of the 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/16123] Modify GDB testsuite to always disable history saving

    Hi Pedro,

    History saving on testsuite should always be disable after enabling the history save on by default
    Please find below patch for this purpose.

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


2013-11-06  Muhammad Bilal  <>

	PR gdb/16123
	* lib/gdb.exp: Add '-ex "set history save off"' to
 gdb/testsuite/lib/gdb.exp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index b8b21ab..e937625 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -59,7 +59,7 @@ set BUILD_DATA_DIRECTORY "[pwd]/../data-directory"
 # INTERNAL_GDBFLAGS contains flags that the testsuite requires.
 if ![info exists INTERNAL_GDBFLAGS] {
-    set INTERNAL_GDBFLAGS "-nw -nx -data-directory $BUILD_DATA_DIRECTORY"
+    set INTERNAL_GDBFLAGS "-nw -nx -ex \"set history save off\" -data-directory $BUILD_DATA_DIRECTORY"
 # The variable gdb_prompt is a regexp which matches the gdb prompt.

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