This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/7] PR gdb/15224 should "set history save on" by default
- From: mbilal <mbilal at codesourcery dot com>
- To: <palves at redhat dot com>, <gdb-patches at sourceware dot org>, <jan dot kratochvil at redhat dot com>
- Date: Mon, 6 May 2013 14:41:54 +0500
- Subject: [PATCH 2/7] PR gdb/15224 should "set history save on" by default
- References: <51877A32 dot 1030503 at codesourcery dot com> <51877A99 dot 4060503 at codesourcery dot com>
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