* [PATCH 4/7] PR gdb/15224 should "set history save on" by default
[not found] ` <51877BC6.6080007@codesourcery.com>
@ 2013-05-06 9:47 ` mbilal
2013-05-07 9:40 ` Abid, Hafiz
2013-05-08 17:14 ` Pedro Alves
2013-05-06 9:48 ` [PATCH 5/7] " mbilal
` (3 subsequent siblings)
4 siblings, 2 replies; 55+ messages in thread
From: mbilal @ 2013-05-06 9:47 UTC (permalink / raw)
To: palves, gdb-patches, jan.kratochvil
On Wednesday, April 03, 2013 7:30 PM Jan Kratochvil wrote:
> (4) Modify GDB testsuite to always disable history saving.
patch for this.
Index: lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.230
diff -u -p -r1.230 gdb.exp
--- lib/gdb.exp 15 Apr 2013 20:37:37 -0000 1.230
+++ lib/gdb.exp 6 May 2013 07:01:55 -0000
@@ -58,7 +58,7 @@ set BUILD_DATA_DIRECTORY "[pwd]/../data-
# INTERNAL_GDBFLAGS contains flags that the testsuite requires.
global INTERNAL_GDBFLAGS
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: gdb.base/default.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
retrieving revision 1.64
diff -u -p -r1.64 default.exp
--- gdb.base/default.exp 15 Apr 2013 18:09:02 -0000 1.64
+++ gdb.base/default.exp 6 May 2013 07:02:53 -0000
@@ -521,8 +521,9 @@ gdb_test "set height" "Argument required
gdb_test_no_output "set history expansion" "set history expansion"
#test set history filename
gdb_test "set history filename" "Argument required .filename to set it
to.*" "set history filename"
+#We are always disable history saving on testsuite
#test set history save
-gdb_test_no_output "set history save" "set history save"
+#gdb_test_no_output "set history save" "set history save"
#test set history size
gdb_test "set history size" "Argument required .integer to set it
to.*" "set history size"
#test set history
@@ -644,7 +645,7 @@ gdb_test "show history expansion" "Histo
#test show history filename
gdb_test "show history filename" "The filename in which to record the
command history is.*.gdb_history.*" "show history filename"
#test show history save
-gdb_test "show history save" "Saving of the history record on exit is
on." "show history save"
+gdb_test "show history save" "Saving of the history record on exit is
off." "show history save"
#test show history size
gdb_test "show history size" "The size of the command history is.*"
"show history size"
#test show history
Index: gdb.base/setshow.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/setshow.exp,v
retrieving revision 1.30
diff -u -p -r1.30 setshow.exp
--- gdb.base/setshow.exp 24 Apr 2013 14:29:17 -0000 1.30
+++ gdb.base/setshow.exp 6 May 2013 07:08:29 -0000
@@ -174,10 +174,11 @@ gdb_test_no_output "set history filename
"set history filename foobar.baz"
#test show history filename foobar.baz
gdb_test "show history filename" "The filename in which to record the
command history is \"foobar.baz\"..*" "show history filename (foobar.baz)"
+#We are always disable history saving on testsuite
#test set history save on
-gdb_test_no_output "set history save on" "set history save on"
+#gdb_test_no_output "set history save on" "set history save on"
#test show history save on
-gdb_test "show history save" "Saving of the history record on exit is
on..*" "show history save (on)"
+gdb_test "show history save" "Saving of the history record on exit is
off..*" "show history save (off)"
#test set history size 100
gdb_test_no_output "set history size 100" "set history size 100"
#test show history size 100
Thanks,
-Bilal
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 4/7] PR gdb/15224 should "set history save on" by default
2013-05-06 9:47 ` [PATCH 4/7] " mbilal
@ 2013-05-07 9:40 ` Abid, Hafiz
2013-05-08 17:14 ` Pedro Alves
1 sibling, 0 replies; 55+ messages in thread
From: Abid, Hafiz @ 2013-05-07 9:40 UTC (permalink / raw)
To: mbilal; +Cc: palves, gdb-patches, jan.kratochvil
On 06/05/13 10:47:21, mbilal wrote:
> On Wednesday, April 03, 2013 7:30 PM Jan Kratochvil wrote:
>
> > (4) Modify GDB testsuite to always disable history saving.
>
> patch for this.
>
> Index: lib/gdb.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
> retrieving revision 1.230
> diff -u -p -r1.230 gdb.exp
> --- lib/gdb.exp 15 Apr 2013 20:37:37 -0000 1.230
> +++ lib/gdb.exp 6 May 2013 07:01:55 -0000
> @@ -58,7 +58,7 @@ set BUILD_DATA_DIRECTORY "[pwd]/../data-
> # INTERNAL_GDBFLAGS contains flags that the testsuite requires.
> global INTERNAL_GDBFLAGS
> 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: gdb.base/default.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
> retrieving revision 1.64
> diff -u -p -r1.64 default.exp
> --- gdb.base/default.exp 15 Apr 2013 18:09:02 -0000 1.64
> +++ gdb.base/default.exp 6 May 2013 07:02:53 -0000
> @@ -521,8 +521,9 @@ gdb_test "set height" "Argument required
> gdb_test_no_output "set history expansion" "set history expansion"
> #test set history filename
> gdb_test "set history filename" "Argument required .filename to set
> it to.*" "set history filename"
> +#We are always disable history saving on testsuite
s/are always disable/always disable/
> #test set history save
> -gdb_test_no_output "set history save" "set history save"
> +#gdb_test_no_output "set history save" "set history save"
> #test set history size
> gdb_test "set history size" "Argument required .integer to set it
> to.*" "set history size"
> #test set history
> @@ -644,7 +645,7 @@ gdb_test "show history expansion" "Histo
> #test show history filename
> gdb_test "show history filename" "The filename in which to record
> the command history is.*.gdb_history.*" "show history filename"
> #test show history save
> -gdb_test "show history save" "Saving of the history record on exit
> is on." "show history save"
> +gdb_test "show history save" "Saving of the history record on exit
> is off." "show history save"
> #test show history size
> gdb_test "show history size" "The size of the command history is.*"
> "show history size"
> #test show history
> Index: gdb.base/setshow.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/setshow.exp,v
> retrieving revision 1.30
> diff -u -p -r1.30 setshow.exp
> --- gdb.base/setshow.exp 24 Apr 2013 14:29:17 -0000 1.30
> +++ gdb.base/setshow.exp 6 May 2013 07:08:29 -0000
> @@ -174,10 +174,11 @@ gdb_test_no_output "set history filename
> "set history filename foobar.baz"
> #test show history filename foobar.baz
> gdb_test "show history filename" "The filename in which to record
> the command history is \"foobar.baz\"..*" "show history filename
> (foobar.baz)"
> +#We are always disable history saving on testsuite
Same here.
> #test set history save on
> -gdb_test_no_output "set history save on" "set history save on"
> +#gdb_test_no_output "set history save on" "set history save on"
> #test show history save on
> -gdb_test "show history save" "Saving of the history record on exit
> is on..*" "show history save (on)"
> +gdb_test "show history save" "Saving of the history record on exit
> is off..*" "show history save (off)"
> #test set history size 100
> gdb_test_no_output "set history size 100" "set history size 100"
> #test show history size 100
>
> Thanks,
> -Bilal
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 4/7] PR gdb/15224 should "set history save on" by default
2013-05-06 9:47 ` [PATCH 4/7] " mbilal
2013-05-07 9:40 ` Abid, Hafiz
@ 2013-05-08 17:14 ` Pedro Alves
1 sibling, 0 replies; 55+ messages in thread
From: Pedro Alves @ 2013-05-08 17:14 UTC (permalink / raw)
To: mbilal; +Cc: gdb-patches, jan.kratochvil
On 05/06/2013 10:47 AM, mbilal wrote:
> On Wednesday, April 03, 2013 7:30 PM Jan Kratochvil wrote:
>
>> (4) Modify GDB testsuite to always disable history saving.
>
> patch for this.
>
> Index: lib/gdb.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
> retrieving revision 1.230
> diff -u -p -r1.230 gdb.exp
> --- lib/gdb.exp 15 Apr 2013 20:37:37 -0000 1.230
> +++ lib/gdb.exp 6 May 2013 07:01:55 -0000
> @@ -58,7 +58,7 @@ set BUILD_DATA_DIRECTORY "[pwd]/../data-
> # INTERNAL_GDBFLAGS contains flags that the testsuite requires.
> global INTERNAL_GDBFLAGS
> 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"
spurious space? ------^^
> }
>
> # The variable gdb_prompt is a regexp which matches the gdb prompt.
> Index: gdb.base/default.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
> retrieving revision 1.64
> diff -u -p -r1.64 default.exp
> --- gdb.base/default.exp 15 Apr 2013 18:09:02 -0000 1.64
> +++ gdb.base/default.exp 6 May 2013 07:02:53 -0000
> @@ -521,8 +521,9 @@ gdb_test "set height" "Argument required
> gdb_test_no_output "set history expansion" "set history expansion"
> #test set history filename
> gdb_test "set history filename" "Argument required .filename to set it to.*" "set history filename"
> +#We are always disable history saving on testsuite
> #test set history save
> -gdb_test_no_output "set history save" "set history save"
> +#gdb_test_no_output "set history save" "set history save"
> #test set history size
I don't understand this. Why disable the test?
> gdb_test "set history size" "Argument required .integer to set it to.*" "set history size"
> #test set history
> @@ -644,7 +645,7 @@ gdb_test "show history expansion" "Histo
> #test show history filename
> gdb_test "show history filename" "The filename in which to record the command history is.*.gdb_history.*" "show history filename"
> #test show history save
> -gdb_test "show history save" "Saving of the history record on exit is on." "show history save"
> +gdb_test "show history save" "Saving of the history record on exit is off." "show history save"
> #test show history size
> gdb_test "show history size" "The size of the command history is.*" "show history size"
> #test show history
> Index: gdb.base/setshow.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/setshow.exp,v
> retrieving revision 1.30
> diff -u -p -r1.30 setshow.exp
> --- gdb.base/setshow.exp 24 Apr 2013 14:29:17 -0000 1.30
> +++ gdb.base/setshow.exp 6 May 2013 07:08:29 -0000
> @@ -174,10 +174,11 @@ gdb_test_no_output "set history filename
> "set history filename foobar.baz"
> #test show history filename foobar.baz
> gdb_test "show history filename" "The filename in which to record the command history is \"foobar.baz\"..*" "show history filename (foobar.baz)"
> +#We are always disable history saving on testsuite
> #test set history save on
> -gdb_test_no_output "set history save on" "set history save on"
> +#gdb_test_no_output "set history save on" "set history save on"
> #test show history save on
> -gdb_test "show history save" "Saving of the history record on exit is on..*" "show history save (on)"
> +gdb_test "show history save" "Saving of the history record on exit is off..*" "show history save (off)"
> #test set history size 100
> gdb_test_no_output "set history size 100" "set history size 100"
> #test show history size 100
Likewise.
--
Pedro Alves
^ permalink raw reply [flat|nested] 55+ messages in thread
* [PATCH 5/7] PR gdb/15224 should "set history save on" by default
[not found] ` <51877BC6.6080007@codesourcery.com>
2013-05-06 9:47 ` [PATCH 4/7] " mbilal
@ 2013-05-06 9:48 ` mbilal
2013-05-08 8:24 ` mbilal
2013-05-08 17:05 ` [PATCH 5/7] PR gdb/15224 should "set history save on" by default Pedro Alves
2013-05-06 9:49 ` [PATCH 6/7] " mbilal
` (2 subsequent siblings)
4 siblings, 2 replies; 55+ messages in thread
From: mbilal @ 2013-05-06 9:48 UTC (permalink / raw)
To: palves, gdb-patches, jan.kratochvil
On Wednesday, April 03, 2013 7:30 PM Jan Kratochvil wrote:
> (6) Change the default set history filename to ~/.gdb_history.
patch is here.
Index: top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.235
diff -u -p -r1.235 top.c
--- top.c 17 Apr 2013 01:02:02 -0000 1.235
+++ top.c 6 May 2013 07:17:13 -0000
@@ -1616,7 +1616,8 @@ void
init_history (void)
{
char *tmpenv;
-
+ char *homedir;
+ homedir = getenv ("HOME");
tmpenv = getenv ("HISTSIZE");
if (tmpenv)
{
@@ -1651,10 +1652,10 @@ init_history (void)
that was read. */
#ifdef __MSDOS__
/* No leading dots in file names are allowed on MSDOS. */
- history_filename = concat (current_directory, "/_gdb_history",
+ history_filename = concat (homedir, "/_gdb_history",
(char *)NULL);
#else
- history_filename = concat (current_directory, "/.gdb_history",
+ history_filename = concat (homedir, "/.gdb_history",
(char *)NULL);
#endif
}
Index: testsuite/gdb.base/default.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
retrieving revision 1.64
diff -u -p -r1.64 default.exp
--- testsuite/gdb.base/default.exp 15 Apr 2013 18:09:02 -0000 1.64
+++ testsuite/gdb.base/default.exp 6 May 2013 07:52:42 -0000
@@ -642,7 +642,8 @@ gdb_test "show height" "Number of lines
#test show history expansion
gdb_test "show history expansion" "History expansion on command input
is o\[a-z\]*.*" "show history expansion"
#test show history filename
-gdb_test "show history filename" "The filename in which to record the
command history is.*.gdb_history.*" "show history filename"
+gdb_test "show history filename" "The filename in which to record the
command history is .$env(HOME).*.gdb_history.*." \
+ "show history filename .$env(HOME).*.gdb_history."
#test show history save
gdb_test "show history save" "Saving of the history record on exit is
on." "show history save"
#test show history size
Thanks,
-Bilal
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 5/7] PR gdb/15224 should "set history save on" by default
2013-05-06 9:48 ` [PATCH 5/7] " mbilal
@ 2013-05-08 8:24 ` mbilal
2013-05-15 11:08 ` [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history mbilal
2013-05-08 17:05 ` [PATCH 5/7] PR gdb/15224 should "set history save on" by default Pedro Alves
1 sibling, 1 reply; 55+ messages in thread
From: mbilal @ 2013-05-08 8:24 UTC (permalink / raw)
To: palves, gdb-patches, jan.kratochvil
On 05/06/2013 02:48 PM, mbilal wrote:
> On Wednesday, April 03, 2013 7:30 PM Jan Kratochvil wrote:
>
> > (6) Change the default set history filename to ~/.gdb_history.
>
> patch is here.
>
> Index: top.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/top.c,v
> retrieving revision 1.235
> diff -u -p -r1.235 top.c
> --- top.c 17 Apr 2013 01:02:02 -0000 1.235
> +++ top.c 6 May 2013 07:17:13 -0000
> @@ -1616,7 +1616,8 @@ void
> init_history (void)
> {
> char *tmpenv;
> -
> + char *homedir;
> + homedir = getenv ("HOME");
> tmpenv = getenv ("HISTSIZE");
> if (tmpenv)
> {
> @@ -1651,10 +1652,10 @@ init_history (void)
> that was read. */
> #ifdef __MSDOS__
> /* No leading dots in file names are allowed on MSDOS. */
> - history_filename = concat (current_directory, "/_gdb_history",
> + history_filename = concat (homedir, "/_gdb_history",
> (char *)NULL);
> #else
> - history_filename = concat (current_directory, "/.gdb_history",
> + history_filename = concat (homedir, "/.gdb_history",
> (char *)NULL);
> #endif
> }
> Index: testsuite/gdb.base/default.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
> retrieving revision 1.64
> diff -u -p -r1.64 default.exp
> --- testsuite/gdb.base/default.exp 15 Apr 2013 18:09:02 -0000 1.64
> +++ testsuite/gdb.base/default.exp 6 May 2013 07:52:42 -0000
> @@ -642,7 +642,8 @@ gdb_test "show height" "Number of lines
> #test show history expansion
> gdb_test "show history expansion" "History expansion on command input
> is o\[a-z\]*.*" "show history expansion"
> #test show history filename
> -gdb_test "show history filename" "The filename in which to record the
> command history is.*.gdb_history.*" "show history filename"
> +gdb_test "show history filename" "The filename in which to record the
> command history is .$env(HOME).*.gdb_history.*." \
> + "show history filename .$env(HOME).*.gdb_history."
> #test show history save
> gdb_test "show history save" "Saving of the history record on exit is
> on." "show history save"
> #test show history size
>
>
> Thanks,
> -Bilal
ping
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-08 8:24 ` mbilal
@ 2013-05-15 11:08 ` mbilal
2013-05-15 11:31 ` Eli Zaretskii
` (2 more replies)
0 siblings, 3 replies; 55+ messages in thread
From: mbilal @ 2013-05-15 11:08 UTC (permalink / raw)
To: palves, gdb-patches; +Cc: jan.kratochvil
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
Hi
Please find attached updated patch.
In This patch Default location of History file has been changed to user
home directory (~/.gdb_history).
2013-05-15 Muhammad Bilal <mbilal@codesourcery.com>
PR gdb/15224
* top.c (init_history): Change the default history filename
to ~/.gdb_history.
* NEWS: Updated.
2013-05-15 Muhammad Bilal <mbilal@codesourcery.com>
PR gdb/15224
* gdb.base/default.exp: Test default history filename
Path.
2013-05-15 Muhammad Bilal <mbilal@codesourcery.com>
PR gdb/15224
* gdb.texinfo (Command History): Change the default history filename
to ~/.gdb_history.
Thanks,
-Bilal
[-- Attachment #2: 6 --]
[-- Type: text/plain, Size: 2387 bytes --]
diff --git a/gdb/top.c b/gdb/top.c
index 480b67e..83a5fee 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1651,11 +1651,9 @@ init_history (void)
that was read. */
#ifdef __MSDOS__
/* No leading dots in file names are allowed on MSDOS. */
- history_filename = concat (current_directory, "/_gdb_history",
- (char *)NULL);
+ history_filename = tilde_expand ("~/_gdb_history");
#else
- history_filename = concat (current_directory, "/.gdb_history",
- (char *)NULL);
+ history_filename = tilde_expand ("~/.gdb_history");
#endif
}
read_history (history_filename);
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp
index 9230ee8..9d2e9ce 100644
--- a/gdb/testsuite/gdb.base/default.exp
+++ b/gdb/testsuite/gdb.base/default.exp
@@ -800,6 +800,15 @@ if ![istarget "*-*-udi*"] then {
timeout { fail "(timeout) target remote" }
}
}
+#get home directory path
+gdb_test_multiple "show environment HOME" "show home directory" {
+ -re "\nHOME = (.*).\n.*" {
+ set HOME $expect_out(1,string)
+ }
+}
+#test show history filename
+gdb_test "show history filename" "The filename in which to record the command history is \"[file join $HOME .gdb_history]\"..*" \
+ "show history filename ([file join $HOME foobar.baz])"
#test target
gdb_test "target" "Argument required .target name.*" "target"
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 1869d74..a9a1f89 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21455,7 +21455,7 @@ list, and where it writes the command history from this session when it
exits. You can access this list through history expansion or through
the history command editing characters listed below. This file defaults
to the value of the environment variable @code{GDBHISTFILE}, or to
-@file{./.gdb_history} (@file{./_gdb_history} on MS-DOS) if this variable
+@file{~/.gdb_history} (@file{~/_gdb_history} on MS-DOS) if this variable
is not set.
diff --git a/gdb/NEWS b/gdb/NEWS
index 7cd1646..04b929f 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,9 @@
*** Changes since GDB 7.6
+* Default location of History file has been changed to user
+home directory (~/.gdb_history).
+
* Python scripting
** Frame filters and frame decorators have been added.
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-15 11:08 ` [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history mbilal
@ 2013-05-15 11:31 ` Eli Zaretskii
2013-05-15 12:07 ` mbilal
2013-05-22 12:02 ` mbilal
2 siblings, 0 replies; 55+ messages in thread
From: Eli Zaretskii @ 2013-05-15 11:31 UTC (permalink / raw)
To: mbilal; +Cc: palves, gdb-patches, jan.kratochvil
> Date: Wed, 15 May 2013 16:08:31 +0500
> From: mbilal <mbilal@codesourcery.com>
> CC: <jan.kratochvil@redhat.com>
>
> In This patch Default location of History file has been changed to user
> home directory (~/.gdb_history).
Any reasons why we should be changing the default? Is it bad to have
a different history file in each project's directory?
The patches for the documentation parts are approved.
Thanks.
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-15 11:08 ` [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history mbilal
2013-05-15 11:31 ` Eli Zaretskii
@ 2013-05-15 12:07 ` mbilal
2013-05-15 13:27 ` Eli Zaretskii
2013-05-22 12:02 ` mbilal
2 siblings, 1 reply; 55+ messages in thread
From: mbilal @ 2013-05-15 12:07 UTC (permalink / raw)
To: eliz; +Cc: palves, gdb-patches, jan.kratochvil
On Wednesday, May 15, 2013 4:31 PM Eli wrote:
>Any reasons why we should be changing the default? Is it bad to have
>a different history file in each project's directory?
On Mon, 01 Apr 2013 14:29:30 +0200, Jan Kratochvil wrote:
> I see there should be also changed the default to:
> set history filename ~/.gdb_history
>Otherwise it is a similar pain to ./.gdbinit, it is also non-standard to any
>other normal application which use history files in $HOME, I do not find using
>./.gdb_history by default as acceptable.
All therequirement for this issue has beendiscussed here.
http://sourceware.org/ml/gdb-patches/2013-04/msg00067.html
Thanks,
-Bilal
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-15 12:07 ` mbilal
@ 2013-05-15 13:27 ` Eli Zaretskii
2013-05-22 17:24 ` Pedro Alves
0 siblings, 1 reply; 55+ messages in thread
From: Eli Zaretskii @ 2013-05-15 13:27 UTC (permalink / raw)
To: mbilal; +Cc: palves, gdb-patches, jan.kratochvil
> Date: Wed, 15 May 2013 17:07:35 +0500
> From: mbilal <mbilal@codesourcery.com>
> CC: <palves@redhat.com>, <gdb-patches@sourceware.org>,
> <jan.kratochvil@redhat.com>
>
> On Wednesday, May 15, 2013 4:31 PM Eli wrote:
>
> >Any reasons why we should be changing the default? Is it bad to have
> >a different history file in each project's directory?
>
> On Mon, 01 Apr 2013 14:29:30 +0200, Jan Kratochvil wrote:
> > I see there should be also changed the default to:
> > set history filename ~/.gdb_history
>
> >Otherwise it is a similar pain to ./.gdbinit, it is also non-standard to any
> >other normal application which use history files in $HOME, I do not find using
> >./.gdb_history by default as acceptable.
> All therequirement for this issue has beendiscussed here.
>
> http://sourceware.org/ml/gdb-patches/2013-04/msg00067.html
Sigh... Another gratuitous backward incompatibility creeps in.
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-15 13:27 ` Eli Zaretskii
@ 2013-05-22 17:24 ` Pedro Alves
2013-05-22 17:49 ` Eli Zaretskii
0 siblings, 1 reply; 55+ messages in thread
From: Pedro Alves @ 2013-05-22 17:24 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: mbilal, gdb-patches, jan.kratochvil
On 05/15/2013 02:26 PM, Eli Zaretskii wrote:
>> Date: Wed, 15 May 2013 17:07:35 +0500
>> From: mbilal <mbilal@codesourcery.com>
>> CC: <palves@redhat.com>, <gdb-patches@sourceware.org>,
>> <jan.kratochvil@redhat.com>
>>
>> On Wednesday, May 15, 2013 4:31 PM Eli wrote:
>>
>>> Any reasons why we should be changing the default? Is it bad to have
>> >a different history file in each project's directory?
>>
>> On Mon, 01 Apr 2013 14:29:30 +0200, Jan Kratochvil wrote:
>>> I see there should be also changed the default to:
>>> set history filename ~/.gdb_history
>>
>>> Otherwise it is a similar pain to ./.gdbinit, it is also non-standard to any
>>> other normal application which use history files in $HOME, I do not find using
>>> ./.gdb_history by default as acceptable.
>> All therequirement for this issue has beendiscussed here.
>>
>> http://sourceware.org/ml/gdb-patches/2013-04/msg00067.html
>
> Sigh... Another gratuitous backward incompatibility creeps in.
Keep in mind that history saving isn't enabled by default.
Would you prefer if we did something like:
At startup time, if "set history filename" hasn't been
used (tracked with a new global flag), then check whether there's
a $cwd/.gdb_history file, and if so, output a warning stating that
it's no longer read by default. The warning could also
suggest adding "set history filename .gdb_history" to .gdbinit
to get back the old behavior.
Thus if the user already has "set history filename ~/.gdb_history"
in .gdbinit she'll not see any warning.
But I'm really not sure it's worth the bother though.
--
Pedro Alves
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-22 17:24 ` Pedro Alves
@ 2013-05-22 17:49 ` Eli Zaretskii
2013-05-22 18:08 ` Pedro Alves
0 siblings, 1 reply; 55+ messages in thread
From: Eli Zaretskii @ 2013-05-22 17:49 UTC (permalink / raw)
To: Pedro Alves; +Cc: mbilal, gdb-patches, jan.kratochvil
> Date: Wed, 22 May 2013 18:24:13 +0100
> From: Pedro Alves <palves@redhat.com>
> CC: mbilal <mbilal@codesourcery.com>, gdb-patches@sourceware.org,
> jan.kratochvil@redhat.com
>
> At startup time, if "set history filename" hasn't been
> used (tracked with a new global flag), then check whether there's
> a $cwd/.gdb_history file, and if so, output a warning stating that
> it's no longer read by default. The warning could also
> suggest adding "set history filename .gdb_history" to .gdbinit
> to get back the old behavior.
That's even more annoying, IMO.
I think gratuitous backward incompatibility is evil, especially in
programs, like GDB, where there are no good facilities for
version-specific scripting. We are breaking scripts out there for no
good reason, and we aren't giving the users of those scripts _any_
means to get their previous behavior cleanly.
But I know I'm somehow in the minority here. It's probably the age or
something.
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-22 17:49 ` Eli Zaretskii
@ 2013-05-22 18:08 ` Pedro Alves
2013-05-22 19:18 ` Eli Zaretskii
0 siblings, 1 reply; 55+ messages in thread
From: Pedro Alves @ 2013-05-22 18:08 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: mbilal, gdb-patches, jan.kratochvil
On 05/22/2013 06:49 PM, Eli Zaretskii wrote:
>> Date: Wed, 22 May 2013 18:24:13 +0100
>> From: Pedro Alves <palves@redhat.com>
>> CC: mbilal <mbilal@codesourcery.com>, gdb-patches@sourceware.org,
>> jan.kratochvil@redhat.com
>>
>> At startup time, if "set history filename" hasn't been
>> used (tracked with a new global flag), then check whether there's
>> a $cwd/.gdb_history file, and if so, output a warning stating that
>> it's no longer read by default. The warning could also
>> suggest adding "set history filename .gdb_history" to .gdbinit
>> to get back the old behavior.
>
> That's even more annoying, IMO.
>
> I think gratuitous backward incompatibility is evil, especially in
> programs, like GDB, where there are no good facilities for
> version-specific scripting. We are breaking scripts out there for no
> good reason, and we aren't giving the users of those scripts _any_
> means to get their previous behavior cleanly.
I understand the sentiment, but I'd rather not generalize, and look
at it on a case by case basis. Scripts do have a means get the
previous behavior. Simply adding this to .gdbinit:
"set history filename .gdb_history"
get you the old behavior back. And works the same with the
older GDBs too. Note the user must already have added
"set history save on"
to .gdbinit in previous releases to have history saving.
He'll just need to add one more line next to that.
If you're talking about getting the previous behavior of
not having history enabled, then the user can just add
"set history save off"
to .gdbinit.
> But I know I'm somehow in the minority here. It's probably the age or
> something.
:-)
The reasoning for changing the default is that we (Pedro/Jan/Muhammad)
believe enabling history by default is a better default that having it
disabled by default, as currently. Couple the fact that ".gdb_history"
is a dot/hidden file, with enabling history saving by default, and users
could end up with their filesystem littered with random hidden .gdb_history
files. I think GDB shouldn't do that by default. So in order to enable
history saving by default, we believe we should default to ~/.gdb_history
instead first. bash also defaults to saving history under $HOME, and I'd
think most other interactive programs/shell do so too. So it feels like
GDB is the odd one out here.
--
Pedro Alves
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-22 18:08 ` Pedro Alves
@ 2013-05-22 19:18 ` Eli Zaretskii
2013-05-22 19:39 ` Pedro Alves
0 siblings, 1 reply; 55+ messages in thread
From: Eli Zaretskii @ 2013-05-22 19:18 UTC (permalink / raw)
To: Pedro Alves; +Cc: mbilal, gdb-patches, jan.kratochvil
> Date: Wed, 22 May 2013 19:08:31 +0100
> From: Pedro Alves <palves@redhat.com>
> CC: mbilal@codesourcery.com, gdb-patches@sourceware.org,
> jan.kratochvil@redhat.com
>
> I understand the sentiment, but I'd rather not generalize, and look
> at it on a case by case basis.
Since my opinions are being voted down "on a case by case basis", that
doesn't help me. I thought maybe generalizing will, because all these
incompatibilities add up to a tendency that I think is dead wrong.
> Scripts do have a means get the previous behavior. Simply adding
> this to .gdbinit:
But .gdbinit in the current directory is no longer read by default, so
I can't, not without restoring the old behavior, which does involve
using a command that will cause old GDB's to barf.
> The reasoning for changing the default is that we (Pedro/Jan/Muhammad)
> believe enabling history by default is a better default that having it
> disabled by default, as currently.
Another gratuitous incompatibility.
> Couple the fact that ".gdb_history"
> is a dot/hidden file, with enabling history saving by default, and users
> could end up with their filesystem littered with random hidden .gdb_history
> files. I think GDB shouldn't do that by default. So in order to enable
> history saving by default, we believe we should default to ~/.gdb_history
> instead first. bash also defaults to saving history under $HOME, and I'd
> think most other interactive programs/shell do so too. So it feels like
> GDB is the odd one out here.
Being the odd one out is not a reason good enough to change behavior
that was the default for a long time.
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-22 19:18 ` Eli Zaretskii
@ 2013-05-22 19:39 ` Pedro Alves
2013-08-01 12:43 ` Muhammad Bilal
2013-08-01 15:41 ` Tom Tromey
0 siblings, 2 replies; 55+ messages in thread
From: Pedro Alves @ 2013-05-22 19:39 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: mbilal, gdb-patches, jan.kratochvil
On 05/22/2013 08:18 PM, Eli Zaretskii wrote:
>> Scripts do have a means get the previous behavior. Simply adding
>> this to .gdbinit:
>
> But .gdbinit in the current directory is no longer read by default, so
> I can't, not without restoring the old behavior, which does involve
> using a command that will cause old GDB's to barf.
>
>> The reasoning for changing the default is that we (Pedro/Jan/Muhammad)
>> believe enabling history by default is a better default that having it
>> disabled by default, as currently.
>
> Another gratuitous incompatibility.
Sorry, but simply calling changes gratuitous when I've made an
effort to explain why I believe they're good doesn't help. :-/
The idea is that enabling the feature by default will expose
it to more users, who will benefit from it, most (educated-guessing
here, of course) not being aware GDB presently can already use
history from previous sessions.
>
>> Couple the fact that ".gdb_history"
>> is a dot/hidden file, with enabling history saving by default, and users
>> could end up with their filesystem littered with random hidden .gdb_history
>> files. I think GDB shouldn't do that by default. So in order to enable
>> history saving by default, we believe we should default to ~/.gdb_history
>> instead first. bash also defaults to saving history under $HOME, and I'd
>> think most other interactive programs/shell do so too. So it feels like
>> GDB is the odd one out here.
>
> Being the odd one out is not a reason good enough to change behavior
> that was the default for a long time.
The default has been to not save the history at all.
When weighing the pros and cons, I believe the pros outweigh the cons.
That's just my opinion, and I've just tried to clarify why I have it.
--
Pedro Alves
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-22 19:39 ` Pedro Alves
@ 2013-08-01 12:43 ` Muhammad Bilal
2013-08-01 15:41 ` Tom Tromey
1 sibling, 0 replies; 55+ messages in thread
From: Muhammad Bilal @ 2013-08-01 12:43 UTC (permalink / raw)
To: Pedro Alves; +Cc: Eli Zaretskii, gdb-patches, jan.kratochvil
On 05/23/2013 12:39 AM, Pedro Alves wrote:
> On 05/22/2013 08:18 PM, Eli Zaretskii wrote:
>>> Scripts do have a means get the previous behavior. Simply adding
>>> this to .gdbinit:
>> But .gdbinit in the current directory is no longer read by default, so
>> I can't, not without restoring the old behavior, which does involve
>> using a command that will cause old GDB's to barf.
>>
>>> The reasoning for changing the default is that we (Pedro/Jan/Muhammad)
>>> believe enabling history by default is a better default that having it
>>> disabled by default, as currently.
>> Another gratuitous incompatibility.
> Sorry, but simply calling changes gratuitous when I've made an
> effort to explain why I believe they're good doesn't help. :-/
>
> The idea is that enabling the feature by default will expose
> it to more users, who will benefit from it, most (educated-guessing
> here, of course) not being aware GDB presently can already use
> history from previous sessions.
>
>>> Couple the fact that ".gdb_history"
>>> is a dot/hidden file, with enabling history saving by default, and users
>>> could end up with their filesystem littered with random hidden .gdb_history
>>> files. I think GDB shouldn't do that by default. So in order to enable
>>> history saving by default, we believe we should default to ~/.gdb_history
>>> instead first. bash also defaults to saving history under $HOME, and I'd
>>> think most other interactive programs/shell do so too. So it feels like
>>> GDB is the odd one out here.
>> Being the odd one out is not a reason good enough to change behavior
>> that was the default for a long time.
> The default has been to not save the history at all.
>
> When weighing the pros and cons, I believe the pros outweigh the cons.
>
> That's just my opinion, and I've just tried to clarify why I have it.
>
ping?
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-22 19:39 ` Pedro Alves
2013-08-01 12:43 ` Muhammad Bilal
@ 2013-08-01 15:41 ` Tom Tromey
2013-08-01 22:17 ` Doug Evans
1 sibling, 1 reply; 55+ messages in thread
From: Tom Tromey @ 2013-08-01 15:41 UTC (permalink / raw)
To: Pedro Alves; +Cc: Eli Zaretskii, mbilal, gdb-patches, jan.kratochvil
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> The default has been to not save the history at all.
Pedro> When weighing the pros and cons, I believe the pros outweigh the cons.
Pedro> That's just my opinion, and I've just tried to clarify why I have it.
I've re-read this thread and I agree that the change should be made.
thanks,
Tom
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-08-01 15:41 ` Tom Tromey
@ 2013-08-01 22:17 ` Doug Evans
0 siblings, 0 replies; 55+ messages in thread
From: Doug Evans @ 2013-08-01 22:17 UTC (permalink / raw)
To: Tom Tromey
Cc: Pedro Alves, Eli Zaretskii, mbilal, gdb-patches, Jan Kratochvil
On Thu, Aug 1, 2013 at 8:41 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> The default has been to not save the history at all.
> Pedro> When weighing the pros and cons, I believe the pros outweigh the cons.
> Pedro> That's just my opinion, and I've just tried to clarify why I have it.
>
> I've re-read this thread and I agree that the change should be made.
I concur.
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
2013-05-15 11:08 ` [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history mbilal
2013-05-15 11:31 ` Eli Zaretskii
2013-05-15 12:07 ` mbilal
@ 2013-05-22 12:02 ` mbilal
2 siblings, 0 replies; 55+ messages in thread
From: mbilal @ 2013-05-22 12:02 UTC (permalink / raw)
To: palves, gdb-patches; +Cc: jan.kratochvil
On 05/15/2013 04:08 PM, mbilal wrote:
> Hi
> Please find attached updated patch.
>
> In This patch Default location of History file has been changed to
> user home directory (~/.gdb_history).
>
>
>
>
>
> 2013-05-15 Muhammad Bilal <mbilal@codesourcery.com>
>
> PR gdb/15224
> * top.c (init_history): Change the default history filename
> to ~/.gdb_history.
>
> * NEWS: Updated.
>
> 2013-05-15 Muhammad Bilal <mbilal@codesourcery.com>
>
> PR gdb/15224
> * gdb.base/default.exp: Test default history filename
> Path.
>
> 2013-05-15 Muhammad Bilal <mbilal@codesourcery.com>
>
> PR gdb/15224
> * gdb.texinfo (Command History): Change the default history filename
> to ~/.gdb_history.
>
>
>
>
> Thanks,
> -Bilal
>
>
>
ping?
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 5/7] PR gdb/15224 should "set history save on" by default
2013-05-06 9:48 ` [PATCH 5/7] " mbilal
2013-05-08 8:24 ` mbilal
@ 2013-05-08 17:05 ` Pedro Alves
1 sibling, 0 replies; 55+ messages in thread
From: Pedro Alves @ 2013-05-08 17:05 UTC (permalink / raw)
To: mbilal; +Cc: gdb-patches, jan.kratochvil
On 05/06/2013 10:48 AM, mbilal wrote:
> On Wednesday, April 03, 2013 7:30 PM Jan Kratochvil wrote:
>
>> (6) Change the default set history filename to ~/.gdb_history.
>
> patch is here.
>
> Index: top.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/top.c,v
> retrieving revision 1.235
> diff -u -p -r1.235 top.c
> --- top.c 17 Apr 2013 01:02:02 -0000 1.235
> +++ top.c 6 May 2013 07:17:13 -0000
> @@ -1616,7 +1616,8 @@ void
> init_history (void)
> {
> char *tmpenv;
> -
> + char *homedir;
> + homedir = getenv ("HOME");
> tmpenv = getenv ("HISTSIZE");
> if (tmpenv)
> {
> @@ -1651,10 +1652,10 @@ init_history (void)
> that was read. */
> #ifdef __MSDOS__
> /* No leading dots in file names are allowed on MSDOS. */
> - history_filename = concat (current_directory, "/_gdb_history",
> + history_filename = concat (homedir, "/_gdb_history",
> (char *)NULL);
> #else
> - history_filename = concat (current_directory, "/.gdb_history",
> + history_filename = concat (homedir, "/.gdb_history",
> (char *)NULL);
> #endif
This doesn't handle the case of HOME not being set.
It's better to use readline's tilde_expand, which handles that
by falling back to looking up the directory in the password
database. If I'm reading the source correctly, I believe that's
also what bash does (likewise using readline's tilde_expand),
though I haven't stepped through it. As simple as:
#ifdef __MSDOS__
/* No leading dots in file names are allowed on MSDOS. */
history_filename = tilde_expand ("~/_gdb_history"),
#else
history_filename = tilde_expand ("~/.gdb_history");
#endif
> }
> Index: testsuite/gdb.base/default.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
> retrieving revision 1.64
> diff -u -p -r1.64 default.exp
> --- testsuite/gdb.base/default.exp 15 Apr 2013 18:09:02 -0000 1.64
> +++ testsuite/gdb.base/default.exp 6 May 2013 07:52:42 -0000
> @@ -642,7 +642,8 @@ gdb_test "show height" "Number of lines
> #test show history expansion
> gdb_test "show history expansion" "History expansion on command input is o\[a-z\]*.*" "show history expansion"
> #test show history filename
> -gdb_test "show history filename" "The filename in which to record the command history is.*.gdb_history.*" "show history filename"
> +gdb_test "show history filename" "The filename in which to record the command history is .$env(HOME).*.gdb_history.*." \
> + "show history filename .$env(HOME).*.gdb_history."
With remote host testing, dejagnu runs on different machine
(build) where GDB itself runs (host), so this assumption that $env(HOME)
always matches gdb's $HOME isn't always true. I think we need to either
Use "remote_exec host" or gdb's "show environment" to get at the right
$HOME.
A ChangeLog entry is missing.
--
Pedro Alves
^ permalink raw reply [flat|nested] 55+ messages in thread
* [PATCH 6/7] PR gdb/15224 should "set history save on" by default
[not found] ` <51877BC6.6080007@codesourcery.com>
2013-05-06 9:47 ` [PATCH 4/7] " mbilal
2013-05-06 9:48 ` [PATCH 5/7] " mbilal
@ 2013-05-06 9:49 ` mbilal
2013-05-06 9:51 ` [PATCH 7/7] " mbilal
2013-05-08 8:23 ` [PATCH 4/7] " mbilal
4 siblings, 0 replies; 55+ messages in thread
From: mbilal @ 2013-05-06 9:49 UTC (permalink / raw)
To: palves, gdb-patches, jan.kratochvil
On Wednesday, April 03, 2013 7:30 PM Jan Kratochvil wrote:
> (7) Enable "set history save on" by default as you already did in
your patch.
Patch is here.
Index: top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.235
diff -u -p -r1.235 top.c
--- top.c 17 Apr 2013 01:02:02 -0000 1.235
+++ top.c 6 May 2013 07:58:47 -0000
@@ -1715,7 +1715,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;
Thanks,
-Bilal
^ permalink raw reply [flat|nested] 55+ messages in thread* [PATCH 7/7] PR gdb/15224 should "set history save on" by default
[not found] ` <51877BC6.6080007@codesourcery.com>
` (2 preceding siblings ...)
2013-05-06 9:49 ` [PATCH 6/7] " mbilal
@ 2013-05-06 9:51 ` mbilal
2013-05-07 10:17 ` Abid, Hafiz
2013-05-08 8:25 ` mbilal
2013-05-08 8:23 ` [PATCH 4/7] " mbilal
4 siblings, 2 replies; 55+ messages in thread
From: mbilal @ 2013-05-06 9:51 UTC (permalink / raw)
To: palves, gdb-patches, jan.kratochvil
Here is doc and news entry.
Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.1084
diff -u -p -r1.1084 gdb.texinfo
--- doc/gdb.texinfo 29 Apr 2013 17:32:43 -0000 1.1084
+++ doc/gdb.texinfo 6 May 2013 09:28:27 -0000
@@ -21286,7 +21286,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: doc/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/doc/ChangeLog,v
retrieving revision 1.1452
diff -u -p -r1.1452 ChangeLog
--- doc/ChangeLog 29 Apr 2013 17:32:43 -0000 1.1452
+++ doc/ChangeLog 6 May 2013 09:28:56 -0000
@@ -1,3 +1,8 @@
+2013-05-06 Muhammad Bilal <mbilal@codesourcery.com>
+
+ PR gdb/15224:
+ * gdb.texinfo (Command history): Set history save enabled.
+
2013-04-29 Tom Tromey <tromey@redhat.com>
PR python/14204:
Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.593
diff -u -p -r1.593 NEWS
--- NEWS 16 Apr 2013 14:36:53 -0000 1.593
+++ NEWS 6 May 2013 09:30:13 -0000
@@ -3,6 +3,9 @@
*** Changes since GDB 7.6
+* The command 'history save' is now default enabled.
+Disabled 'history save' on testsuiltes.
+
* New commands:
catch rethrow
Like "catch throw", but catches a re-thrown exception.
Thanks,
-Bilal
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 7/7] PR gdb/15224 should "set history save on" by default
2013-05-06 9:51 ` [PATCH 7/7] " mbilal
@ 2013-05-07 10:17 ` Abid, Hafiz
2013-05-08 17:08 ` Pedro Alves
2013-05-08 8:25 ` mbilal
1 sibling, 1 reply; 55+ messages in thread
From: Abid, Hafiz @ 2013-05-07 10:17 UTC (permalink / raw)
To: mbilal; +Cc: palves, gdb-patches, jan.kratochvil
On 06/05/13 10:50:59, mbilal wrote:
> Here is doc and news entry.
>
> Index: doc/gdb.texinfo
> ===================================================================
> RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
> retrieving revision 1.1084
> diff -u -p -r1.1084 gdb.texinfo
> --- doc/gdb.texinfo 29 Apr 2013 17:32:43 -0000 1.1084
> +++ doc/gdb.texinfo 6 May 2013 09:28:27 -0000
> @@ -21286,7 +21286,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: doc/ChangeLog
> ===================================================================
> RCS file: /cvs/src/src/gdb/doc/ChangeLog,v
> retrieving revision 1.1452
> diff -u -p -r1.1452 ChangeLog
> --- doc/ChangeLog 29 Apr 2013 17:32:43 -0000 1.1452
> +++ doc/ChangeLog 6 May 2013 09:28:56 -0000
> @@ -1,3 +1,8 @@
> +2013-05-06 Muhammad Bilal <mbilal@codesourcery.com>
> +
> + PR gdb/15224:
> + * gdb.texinfo (Command history): Set history save enabled.
This is not very clear. May be you can use something like "Mention that
'set history save' is 'on' by default."
> +
> 2013-04-29 Tom Tromey <tromey@redhat.com>
>
> PR python/14204:
> Index: NEWS
> ===================================================================
> RCS file: /cvs/src/src/gdb/NEWS,v
> retrieving revision 1.593
> diff -u -p -r1.593 NEWS
> --- NEWS 16 Apr 2013 14:36:53 -0000 1.593
> +++ NEWS 6 May 2013 09:30:13 -0000
> @@ -3,6 +3,9 @@
>
> *** Changes since GDB 7.6
>
> +* The command 'history save' is now default enabled.
How about "is now enabled by default."
> +Disabled 'history save' on testsuiltes.
Maintainers can tell for sure but I think this does not need to be
added in NEWS.
> +
> * New commands:
> catch rethrow
> Like "catch throw", but catches a re-thrown exception.
>
>
> Thanks,
> -Bilal
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 7/7] PR gdb/15224 should "set history save on" by default
2013-05-06 9:51 ` [PATCH 7/7] " mbilal
2013-05-07 10:17 ` Abid, Hafiz
@ 2013-05-08 8:25 ` mbilal
2013-05-08 16:51 ` Eli Zaretskii
2013-05-08 17:18 ` Pedro Alves
1 sibling, 2 replies; 55+ messages in thread
From: mbilal @ 2013-05-08 8:25 UTC (permalink / raw)
To: palves, gdb-patches, jan.kratochvil
On 05/06/2013 02:50 PM, mbilal wrote:
> Here is doc and news entry.
>
> Index: doc/gdb.texinfo
> ===================================================================
> RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
> retrieving revision 1.1084
> diff -u -p -r1.1084 gdb.texinfo
> --- doc/gdb.texinfo 29 Apr 2013 17:32:43 -0000 1.1084
> +++ doc/gdb.texinfo 6 May 2013 09:28:27 -0000
> @@ -21286,7 +21286,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: doc/ChangeLog
> ===================================================================
> RCS file: /cvs/src/src/gdb/doc/ChangeLog,v
> retrieving revision 1.1452
> diff -u -p -r1.1452 ChangeLog
> --- doc/ChangeLog 29 Apr 2013 17:32:43 -0000 1.1452
> +++ doc/ChangeLog 6 May 2013 09:28:56 -0000
> @@ -1,3 +1,8 @@
> +2013-05-06 Muhammad Bilal <mbilal@codesourcery.com>
> +
> + PR gdb/15224:
> + * gdb.texinfo (Command history): Set history save enabled.
> +
> 2013-04-29 Tom Tromey <tromey@redhat.com>
>
> PR python/14204:
> Index: NEWS
> ===================================================================
> RCS file: /cvs/src/src/gdb/NEWS,v
> retrieving revision 1.593
> diff -u -p -r1.593 NEWS
> --- NEWS 16 Apr 2013 14:36:53 -0000 1.593
> +++ NEWS 6 May 2013 09:30:13 -0000
> @@ -3,6 +3,9 @@
>
> *** Changes since GDB 7.6
>
> +* The command 'history save' is now default enabled.
> +Disabled 'history save' on testsuiltes.
> +
> * New commands:
> catch rethrow
> Like "catch throw", but catches a re-thrown exception.
>
>
> Thanks,
> -Bilal
ping
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 7/7] PR gdb/15224 should "set history save on" by default
2013-05-08 8:25 ` mbilal
@ 2013-05-08 16:51 ` Eli Zaretskii
2013-05-08 17:18 ` Pedro Alves
1 sibling, 0 replies; 55+ messages in thread
From: Eli Zaretskii @ 2013-05-08 16:51 UTC (permalink / raw)
To: mbilal; +Cc: palves, gdb-patches, jan.kratochvil
> Date: Wed, 8 May 2013 13:24:41 +0500
> From: mbilal <mbilal@codesourcery.com>
>
> On 05/06/2013 02:50 PM, mbilal wrote:
> > Here is doc and news entry.
> >
> > Index: doc/gdb.texinfo
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
> > retrieving revision 1.1084
> > diff -u -p -r1.1084 gdb.texinfo
> > --- doc/gdb.texinfo 29 Apr 2013 17:32:43 -0000 1.1084
> > +++ doc/gdb.texinfo 6 May 2013 09:28:27 -0000
> > @@ -21286,7 +21286,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: doc/ChangeLog
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/doc/ChangeLog,v
> > retrieving revision 1.1452
> > diff -u -p -r1.1452 ChangeLog
> > --- doc/ChangeLog 29 Apr 2013 17:32:43 -0000 1.1452
> > +++ doc/ChangeLog 6 May 2013 09:28:56 -0000
> > @@ -1,3 +1,8 @@
> > +2013-05-06 Muhammad Bilal <mbilal@codesourcery.com>
> > +
> > + PR gdb/15224:
> > + * gdb.texinfo (Command history): Set history save enabled.
> > +
> > 2013-04-29 Tom Tromey <tromey@redhat.com>
> >
> > PR python/14204:
> > Index: NEWS
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/NEWS,v
> > retrieving revision 1.593
> > diff -u -p -r1.593 NEWS
> > --- NEWS 16 Apr 2013 14:36:53 -0000 1.593
> > +++ NEWS 6 May 2013 09:30:13 -0000
> > @@ -3,6 +3,9 @@
> >
> > *** Changes since GDB 7.6
> >
> > +* The command 'history save' is now default enabled.
> > +Disabled 'history save' on testsuiltes.
> > +
> > * New commands:
> > catch rethrow
> > Like "catch throw", but catches a re-thrown exception.
> >
> >
> > Thanks,
> > -Bilal
> ping
AFAIR, you got comments, but this patch does not reflect them. Did
you send the correct diffs?
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 7/7] PR gdb/15224 should "set history save on" by default
2013-05-08 8:25 ` mbilal
2013-05-08 16:51 ` Eli Zaretskii
@ 2013-05-08 17:18 ` Pedro Alves
1 sibling, 0 replies; 55+ messages in thread
From: Pedro Alves @ 2013-05-08 17:18 UTC (permalink / raw)
To: mbilal; +Cc: gdb-patches, jan.kratochvil
The default history file path also changed, and that needs
to be documented as well, both manual and NEWS.
On 05/08/2013 09:24 AM, mbilal wrote:
> On 05/06/2013 02:50 PM, mbilal wrote:
>> Here is doc and news entry.
>>
>> Index: doc/gdb.texinfo
>> ===================================================================
>> RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
>> retrieving revision 1.1084
>> diff -u -p -r1.1084 gdb.texinfo
>> --- doc/gdb.texinfo 29 Apr 2013 17:32:43 -0000 1.1084
>> +++ doc/gdb.texinfo 6 May 2013 09:28:27 -0000
>> @@ -21286,7 +21286,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: doc/ChangeLog
>> ===================================================================
>> RCS file: /cvs/src/src/gdb/doc/ChangeLog,v
>> retrieving revision 1.1452
>> diff -u -p -r1.1452 ChangeLog
>> --- doc/ChangeLog 29 Apr 2013 17:32:43 -0000 1.1452
>> +++ doc/ChangeLog 6 May 2013 09:28:56 -0000
>> @@ -1,3 +1,8 @@
>> +2013-05-06 Muhammad Bilal <mbilal@codesourcery.com>
>> +
>> + PR gdb/15224:
>> + * gdb.texinfo (Command history): Set history save enabled.
>> +
>> 2013-04-29 Tom Tromey <tromey@redhat.com>
>>
>> PR python/14204:
>> Index: NEWS
>> ===================================================================
>> RCS file: /cvs/src/src/gdb/NEWS,v
>> retrieving revision 1.593
>> diff -u -p -r1.593 NEWS
>> --- NEWS 16 Apr 2013 14:36:53 -0000 1.593
>> +++ NEWS 6 May 2013 09:30:13 -0000
>> @@ -3,6 +3,9 @@
>>
>> *** Changes since GDB 7.6
>>
>> +* The command 'history save' is now default enabled.
>> +Disabled 'history save' on testsuiltes.
>> +
>> * New commands:
>> catch rethrow
>> Like "catch throw", but catches a re-thrown exception.
>>
>>
>> Thanks,
>> -Bilal
> ping
--
Pedro Alves
^ permalink raw reply [flat|nested] 55+ messages in thread
* Re: [PATCH 4/7] PR gdb/15224 should "set history save on" by default
[not found] ` <51877BC6.6080007@codesourcery.com>
` (3 preceding siblings ...)
2013-05-06 9:51 ` [PATCH 7/7] " mbilal
@ 2013-05-08 8:23 ` mbilal
2013-05-09 11:12 ` mbilal
[not found] ` <51936853.7050106@codesourcery.com>
4 siblings, 2 replies; 55+ messages in thread
From: mbilal @ 2013-05-08 8:23 UTC (permalink / raw)
To: palves, gdb-patches, jan.kratochvil
On 05/06/2013 02:45 PM, mbilal wrote:
> On Wednesday, April 03, 2013 7:30 PM Jan Kratochvil wrote:
>
> > (4) Modify GDB testsuite to always disable history saving.
>
> patch for this.
>
> Index: lib/gdb.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
> retrieving revision 1.230
> diff -u -p -r1.230 gdb.exp
> --- lib/gdb.exp 15 Apr 2013 20:37:37 -0000 1.230
> +++ lib/gdb.exp 6 May 2013 07:01:55 -0000
> @@ -58,7 +58,7 @@ set BUILD_DATA_DIRECTORY "[pwd]/../data-
> # INTERNAL_GDBFLAGS contains flags that the testsuite requires.
> global INTERNAL_GDBFLAGS
> 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: gdb.base/default.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
> retrieving revision 1.64
> diff -u -p -r1.64 default.exp
> --- gdb.base/default.exp 15 Apr 2013 18:09:02 -0000 1.64
> +++ gdb.base/default.exp 6 May 2013 07:02:53 -0000
> @@ -521,8 +521,9 @@ gdb_test "set height" "Argument required
> gdb_test_no_output "set history expansion" "set history expansion"
> #test set history filename
> gdb_test "set history filename" "Argument required .filename to set
> it to.*" "set history filename"
> +#We are always disable history saving on testsuite
> #test set history save
> -gdb_test_no_output "set history save" "set history save"
> +#gdb_test_no_output "set history save" "set history save"
> #test set history size
> gdb_test "set history size" "Argument required .integer to set it
> to.*" "set history size"
> #test set history
> @@ -644,7 +645,7 @@ gdb_test "show history expansion" "Histo
> #test show history filename
> gdb_test "show history filename" "The filename in which to record the
> command history is.*.gdb_history.*" "show history filename"
> #test show history save
> -gdb_test "show history save" "Saving of the history record on exit is
> on." "show history save"
> +gdb_test "show history save" "Saving of the history record on exit is
> off." "show history save"
> #test show history size
> gdb_test "show history size" "The size of the command history is.*"
> "show history size"
> #test show history
> Index: gdb.base/setshow.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/setshow.exp,v
> retrieving revision 1.30
> diff -u -p -r1.30 setshow.exp
> --- gdb.base/setshow.exp 24 Apr 2013 14:29:17 -0000 1.30
> +++ gdb.base/setshow.exp 6 May 2013 07:08:29 -0000
> @@ -174,10 +174,11 @@ gdb_test_no_output "set history filename
> "set history filename foobar.baz"
> #test show history filename foobar.baz
> gdb_test "show history filename" "The filename in which to record the
> command history is \"foobar.baz\"..*" "show history filename
> (foobar.baz)"
> +#We are always disable history saving on testsuite
> #test set history save on
> -gdb_test_no_output "set history save on" "set history save on"
> +#gdb_test_no_output "set history save on" "set history save on"
> #test show history save on
> -gdb_test "show history save" "Saving of the history record on exit is
> on..*" "show history save (on)"
> +gdb_test "show history save" "Saving of the history record on exit is
> off..*" "show history save (off)"
> #test set history size 100
> gdb_test_no_output "set history size 100" "set history size 100"
> #test show history size 100
>
>
>
>
> Thanks,
> -Bilal
ping?
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 4/7] PR gdb/15224 should "set history save on" by default
2013-05-08 8:23 ` [PATCH 4/7] " mbilal
@ 2013-05-09 11:12 ` mbilal
2013-05-09 12:05 ` Pedro Alves
[not found] ` <51936853.7050106@codesourcery.com>
1 sibling, 1 reply; 55+ messages in thread
From: mbilal @ 2013-05-09 11:12 UTC (permalink / raw)
To: palves, hafiz_abid; +Cc: gdb-patches, jan.kratochvil
On Wednesday, May 08, 2013 10:14 PM pedro Alves wrote:
>> - 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"
>spurious space? ------^^
Fixed.
>> +#We are always disable history saving on testsuite
>> #test set history save
>> -gdb_test_no_output "set history save" "set history save"
>> +#gdb_test_no_output "set history save" "set history save"
>> #test set history size
>I don't understand this. Why disable the test?
We are disabling the history saving on all testsuit, if we run the above
testsuit then history saving becomes enable that will also writes the
history
command on .gdb_history file. That's why I disabled this test case.
On Tuesday, May 07, 2013 2:40 PM Hafiz Abid wrote:
>> +#We are always disable history saving on testsuite
>s/are always disable/always disable/
fixed .
please find updated patch.
Index: testsuite/lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.230
diff -u -p -r1.230 gdb.exp
--- testsuite/lib/gdb.exp 15 Apr 2013 20:37:37 -0000 1.230
+++ testsuite/lib/gdb.exp 9 May 2013 10:38:18 -0000
@@ -58,7 +58,7 @@ set BUILD_DATA_DIRECTORY "[pwd]/../data-
# INTERNAL_GDBFLAGS contains flags that the testsuite requires.
global INTERNAL_GDBFLAGS
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"
}
Index: gdb.base/default.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
retrieving revision 1.64
diff -u -p -r1.64 default.exp
--- gdb.base/default.exp 15 Apr 2013 18:09:02 -0000 1.64
+++ gdb.base/default.exp 6 May 2013 07:02:53 -0000
@@ -521,8 +521,9 @@ gdb_test "set height" "Argument required
gdb_test_no_output "set history expansion" "set history expansion"
#test set history filename
gdb_test "set history filename" "Argument required .filename to set it
to.*" "set history filename"
+#We always disable history saving on testsuite
#test set history save
-gdb_test_no_output "set history save" "set history save"
+#gdb_test_no_output "set history save" "set history save"
#test set history size
gdb_test "set history size" "Argument required .integer to set it
to.*" "set history size"
#test set history
@@ -644,7 +645,7 @@ gdb_test "show history expansion" "Histo
#test show history filename
gdb_test "show history filename" "The filename in which to record the
command history is.*.gdb_history.*" "show history filename"
#test show history save
-gdb_test "show history save" "Saving of the history record on exit is
on." "show history save"
+gdb_test "show history save" "Saving of the history record on exit is
off." "show history save"
#test show history size
gdb_test "show history size" "The size of the command history is.*"
"show history size"
#test show history
Index: gdb.base/setshow.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/setshow.exp,v
retrieving revision 1.30
diff -u -p -r1.30 setshow.exp
--- gdb.base/setshow.exp 24 Apr 2013 14:29:17 -0000 1.30
+++ gdb.base/setshow.exp 6 May 2013 07:08:29 -0000
@@ -174,10 +174,11 @@ gdb_test_no_output "set history filename
"set history filename foobar.baz"
#test show history filename foobar.baz
gdb_test "show history filename" "The filename in which to record the
command history is \"foobar.baz\"..*" "show history filename (foobar.baz)"
+#We always disable history saving on testsuite
#test set history save on
-gdb_test_no_output "set history save on" "set history save on"
+#gdb_test_no_output "set history save on" "set history save on"
#test show history save on
-gdb_test "show history save" "Saving of the history record on exit is
on..*" "show history save (on)"
+gdb_test "show history save" "Saving of the history record on exit is
off..*" "show history save (off)"
#test set history size 100
gdb_test_no_output "set history size 100" "set history size 100"
#test show history size 100
Index: testsuite/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/ChangeLog,v
retrieving revision 1.3640
diff -u -p -r1.3640 ChangeLog
--- testsuite/ChangeLog 30 Apr 2013 12:33:51 -0000 1.3640
+++ testsuite/ChangeLog 9 May 2013 11:04:17 -0000
@@ -1,3 +1,11 @@
+2013-05-06 Muhammad Bilal <mbilal@codesourcery.com>
+
+ PR gdb/15224
+ * lib/gdb.exp: Disabled history saving on testsuites.
+ * gdb.base/default.exp: Comment 'set history save' test case.
+ Changed out put of 'show history save' test case.
+ * gdb.base/setshow.exp: Likewise.
+
2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
* gdb.xml/maint_print_struct.exp: New file.
Thanks,
-Bilal
^ permalink raw reply [flat|nested] 55+ messages in thread* Re: [PATCH 4/7] PR gdb/15224 should "set history save on" by default
2013-05-09 11:12 ` mbilal
@ 2013-05-09 12:05 ` Pedro Alves
0 siblings, 0 replies; 55+ messages in thread
From: Pedro Alves @ 2013-05-09 12:05 UTC (permalink / raw)
To: mbilal; +Cc: hafiz_abid, gdb-patches, jan.kratochvil
On 05/09/2013 12:12 PM, mbilal wrote:
> On Wednesday, May 08, 2013 10:14 PM pedro Alves wrote:
>
>>> - 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"
>
>>spurious space? ------^^
>
> Fixed.
BTW, I think:
set INTERNAL_GDBFLAGS "-nw -nx -ex \"set history save off\" -data-directory $BUILD_DATA_DIRECTORY"
would be easier to read (and write).
>>> +#We are always disable history saving on testsuite
>>> #test set history save
>>> -gdb_test_no_output "set history save" "set history save"
>>> +#gdb_test_no_output "set history save" "set history save"
>>> #test set history size
>
>>I don't understand this. Why disable the test?
>
> We are disabling the history saving on all testsuit, if we run the above
> testsuit then history saving becomes enable that will also writes the history
> command on .gdb_history file. That's why I disabled this test case.
So that's a preexisting bug, that triggers even if GDB's
default isn't changed, right? Let's fix it first, before the default is
changed, in its own patch. Please send it as a new thread (i.e., not in
reply to this thread, in a message that includes a self-contained
description of the rationale for the change, and a concise Subject:.
I suggest perusing these guidelines that although written for the
Linux kernel, can be transcribed to lots of other projects as well:
<http://www.linux-mips.org/wiki/Submitting_Patches>
Instead of disabling the test completely, I suggest re-disabling
history saving immediately afterwards:
gdb_test_no_output "set history save" "set history save"
+gdb_test_no_output "set history save off" "set history save off"
--
Pedro Alves
^ permalink raw reply [flat|nested] 55+ messages in thread
[parent not found: <51936853.7050106@codesourcery.com>]