[PATCH 2/7] PR gdb/15224 should "set history save on" by default

mbilal
2013-05-06T09:42:01Z

On Wednesday, April 03, 2013 7:30 PM Jan Kratochvil wrote:

> (2) Unify interactivity tests to use input_from_terminal_p:

patch for this

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 06:12:07 -0000
@@ -1041,7 +1041,7 @@ command_line_input (char *prompt_arg, in

/* Do history expansion if that is wished. */
if (history_expansion_p && instream == stdin
- && ISATTY (instream))
+ && ISATTY (instream) && input_from_terminal_p())
{
char *history_value;
int expanded;

Thanks,
-Bilal