aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-02-04 17:37:59 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-02-04 17:37:59 +0000
commit1180b2c86e7162bbe500802b3c16ea7ab26c6ab6 (patch)
tree49d4544338868316f056641020290dee29015e3d /gdb/tui
parentc3f08eb78059b1b86df7bbede842933bc81f4d17 (diff)
downloadgdb-1180b2c86e7162bbe500802b3c16ea7ab26c6ab6.zip
gdb-1180b2c86e7162bbe500802b3c16ea7ab26c6ab6.tar.gz
gdb-1180b2c86e7162bbe500802b3c16ea7ab26c6ab6.tar.bz2
Call tui_initialize_readline only if gdb_stdout is a tty.
2010-02-04 H.J. Lu <hongjiu.lu@intel.com> PR tui/9622 * tui/tui-interp.c (tui_init): Call tui_initialize_readline only if gdb_stdout is a tty.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-interp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 3b59769..3bb8246 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -57,7 +57,8 @@ tui_init (int top_level)
tui_initialize_io ();
tui_initialize_win ();
- tui_initialize_readline ();
+ if (ui_file_isatty (gdb_stdout))
+ tui_initialize_readline ();
return NULL;
}